Hi,
I have 40 matrices, each 32026×4, and I I need to store each column of each matrix into a different variable. Writing the following is cumbersome and impracticle when I have larger number of matrices:
x1=matrixA(:,1); y1=matrixA(:,2); u1=matrixA(:,3); v1=matrixA(:,4);
As you can see, it would take ages just to write the code. And debuggin will be even worse if I make a mistake somewhere. Do I need some sort of double for loop? Appreciate the help and thanks in advance!
Best Answer