Matlab and textscan issue, sadly. In my case I am able to import my data of interest, using:
f = fopen(file,'r'); % Open text file
data=textscan(f, '%f %f %f %f %f %f %f %f', 'Delimiter',',', 'HeaderLines',14);
fclose(f);
But
In the 12th and 13 rows of the header I have some interesting data, structured as follows:
Calibration Coefficient,0.002501,0.001,0.1294,35.5,200,66.666,1
Offset,0.9,0,0,0,0.7,0,0
so they are strings in the first column, then 7 doubles, that should be coded in this way(?)
param1=textscan(f, '%*s %f %f %f %f %f %f %f','Delimiter',',','HeaderLines',11);
param2=textscan(f, '%*s %f %f %f %f %f %f %f','Delimiter',',','HeaderLines',12);
Actually I was wondering why the param cell is empty, and if was possible to import only the data in rows 12 and 13 of my files.
Thanks in advance.