Suppose your array is called A and has size 1 x N*M, so it is a row.
To
divide it into N cell arrays of length M use the command:
C =
mat2cell(A,[1],ones(1,N)*M);
Now to access the i-th M-tuple you should
run
C{i}
In your case you should run
C =
mat2cell(A,[1],ones(1,7110)*100);
===============================
Another
approach is to convert A into M x N array (M rows and N columns) by the
command
D = reshape(A,M,N)
Then to access the i-th M-tuple
run
D(:,i)
In your case use the command
D =
reshape(A,100,7110)
Comments
Leave a comment