MATLAB: How to convert 2X4X10 array into 4x2x10 array

concat

eg; V(:,:,1)=[5 8 9 7;7 8 4 3]…….. V(:,:,10)=[7 4 1 9;4 8 6 3] How to convert V(2,4,10) array to V(4,2,10) eg; V(:,:,1)=[5 7;8 8;9 4;7 3] Is permute command can work with this

Best Answer

permute(V,[2 1 3])