Hello, I need to read a file that contains an double/float matrix in format
1, 1, 0.00, 0.00, 0.00, 2426 (.....) 248, 256, 0.00, 0.00, 0.00, 1839
problem is that in the first 142 lines, there are strings which i have to ignore, and I'm not getting fscanf to work. Im not allowed to use textscan This is how im calling fscanf:
A = fscanf(fid, '%f %f %f %f %f %f', [6, inf])
In help fscanf, it says that the lines that arent in the specified format will be ignored, but that doesn't happen
Reply please, thank you!
No products are associated with this question.
Where do you see that in the help for fscanf? The documentation says,
If fscanf cannot match the format to the data, it reads only the portion that matches into A and stops processing.
1 Comment
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/56069#comment_116096
What is the question we could reply to?