MATLAB: 3-D matrix transpose

3-dtranspose

Hello
I have a 3-D matrix and I want to take the transpose of each individual vector. This is what I want to do:
transpose(A(:,:,1) transpose(A(:,:,2) … up to (:,:,25)
Would anybody be able to help with this?

Best Answer

permute(A,[2 1 3])
permute is the way to generalize transpose-like operations in ND.
Related Question