I have a matrix A 965*365 want to make from this matrix a matrix Z such that it is having only three rows such that in 1st row value of A(:,1), A(:,4), A(:,7) and so on and in second row value of A(:,2), A(:,5) and so on and in third row value of A(:,3), A(:,6) and so on
Z=[];n=1; for i=1:4:3864 Z(n:n+965,1)=A(:,i+2); Z(n:n+965,2)=A(:,i+3); Z(n:n+965,3)=A(:,i); n=n+965; endSubscripted assignment dimension mismatch.
Plz tell me how can I solve it?
Best Answer