Comparing CSV's in from 2 files
- From: Steve <sysop2u@xxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 13:31:43 -0500
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
.
- Prev by Date: How to write and call functions in matlab?
- Next by Date: Segmentation violation in mex file
- Previous by thread: How to write and call functions in matlab?
- Next by thread: Segmentation violation in mex file
- Index(es):
Relevant Pages
|
Loading