Comparing CSV's in from 2 files



Alright, I'm really new to Matlab so don't laugh if this question is
so trivial that it makes you sick. I'm trying to write something in
matlab that compares 2 x,y,z csv data files to make sure they are
exact, but one is actually a conversion of the other (for simplicity
we'll say the conversion is (*2), so 1 should = 2, 2 should = 4, 3
should = 6, ect...

file1.txt is...
1 1 1
2 2 2
3 3 3
7 4 9
..
..
..

file2.txt if converted properly is...
2 2 2
4 4 4
6 6 6
14 8 18
..
..
..

If one of the values is wrong after going through the conversion I
need it to print the line number where it happened (out to a .txt),
and continue comparing to the end of file.

Here's where I'm having the problem... I DON'T WANT TO STORE MY DATA
IN ARRAY'S because I have hundreds of thousands of lines of data and
it takes all day to process!!! For the sake of speed and faster
processing, I just want to compare each x, y, z value between the two
files, with the *2 conversion in mind, line by line, and if any data
point gets screwed up, print the line# and move on and forget about
the previous lines.

I already know how to do this with arrays, but they are slow with
superlarge data sets. Can someone please provide a bare bones
"no-array" code example so that I may use as a blueprint.

Thanks,
Steve
.



Relevant Pages

  • Re: C to MATLAB from scratch.Where to start?
    ... My question is about the reverse conversion from .m to C/C++, ... Start from scratch. ... Matlab doesn't handle trivial program elemnts like for loops very well. ... m code to some extent is ambiguious, the automatic C compiler ...
    (comp.soft-sys.matlab)
  • Converting between java-matlab
    ... the running of my algorithm. ... In matlab, I can use two solutions to add the next element ... which requires no further matlab conversion. ... scans the vector but we all know how matlab cycles are NOT ...
    (comp.soft-sys.matlab)
  • matlab to MMA, need some help converting this code.
    ... does anyone know both mathematica AND matlab? ... nice to see line by line explanation of the conversion. ... % store data for first time point ... % calculate which reaction is next ...
    (sci.math.symbolic)
  • Re: Converting sequential MATLAB code to a parallel form
    ... one of the high level goals of this conversion experiment is to have the code ... When you run with a matlabpool, we attempt to synchronise the MATLAB path ... between the desktop client and the workers. ... There are several ways that you can proceed - either you can place your M-code ...
    (comp.soft-sys.matlab)
  • Comparing Use Case Points and Function Points
    ... section which compares use case points and function points and also ... says there conversion factor. ... second it only compares unadjusted counting of both function points ... any deviations from those guidelines this conversion can go weird. ...
    (comp.object)

Loading