Hi everyone,
I have a data file like this:
1 .00 80.00 160.00 240.00 320.00 400.00 480.00 560.00 640.00 720.00 1 -250.00-250.00-250.00-255.00-255.00-260.00-265.00-270.00-265.60-260.00 1 800.00 880.00 960.001040.001120.001200.001280.001360.001440.001520.00 1 -255.00-255.00-263.30-286.70-310.60-320.00-313.90-290.00-267.80-260.00....
The format doens't change.
I try to read each line using sscanf, but when the numbers doenst have space, I can't read them.
In otherwords, when I use:
ff = fgetl(fid)aff = sscanf(ff,'%f')
This works fine for the first line, because the numbers has space between them.
But doens't work for the rest of lines.
I also tried the command:
ff = fgetl(fid)aff = sscanf(ff,'%2f %7.2f%7.2f%7.2f%7.2f%7.2f%7.2f%7.2f%7.2f%7.2f%7.2f',[1 11])
But without success.
Someone can help me?
Best regards.
Best Answer