I have a similar question to MATLAB CSV File Read, but slightly more complicated.
In my instance, as well as having header lines that the start of my data, the data is separated into steps all in the same file like below:
headers
1,2,3
more headers
4,5,6
more headers again
7,8,9
Is there a way to "scan" through the entire data file and output the data?
I tried with csvread;
%step 1 pre load
RNG = [23 0 1539 8];
M = csvread(dat,23,0,RNG);
%step 2 stabilisation
RNG = [1555 0 2566 8];
N = csvread(dat,1555,0,RNG);
%step 3 test
RNG = [2582 0 4693 8];
O = csvread(dat,2582,0,RNG);
%step 4 end of test
RNG = [4709 0 4920 8];
P = csvread(dat,4709,0,RNG);
but the "ranges" are slightly different between tests, so without manually checking each data file for where the data is, this approach won't work. I "experimented" with textscan but didn't get anything useful to share.