mmmmm.....Matlab.....I love Matlab for lunch....it just requires late late nights of preparation...
Look around in Matlab...I know there's a way to input data from a non-Matlab file into Matlab, but I don't remember how.
Then you could just use for loops to manipulate in a various amount of ways:
head=0;
for n=[0:2100] % 2100=# of instances this pattern occurs
for i=[1:40]; %row i of occurance n of the pattern
for j=[1:13]; %column
newMatrix[i+40*n,j] = oldMatrixFromFile[i+40*n+head*n,j];
end
end
head = head+6; %6 is the number of header lines b/t data
end
I wrote this mini code, just to give an initial idea. I don't think it will directly work. This also assumes that you can get the
entire data file into Matlab into matrix form.
Hope this gives you some direction...I'll soon be doing some research in which I'll have to manipulate large amounts of data as well
