Currently I have 3 dimensional matrix of size (2,3,3)
A(:,:,1) =
1 2 3 4 5 6
A(:,:,2) =
7 8 9 10 11 12
A(:,:,3) =
13 14 15 16 17 18
I would like to reshape it into [6 3] matrix so that it will become
A =
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
I try to use reshape(A,[6 3]); But it return the wrong matrix
Is there any quick way to do this?
Best Answer