Rotating a 3D matrix in MATLAB

Viewed 12356

I have a 3D matrix with the dimensions 6, 2, and 10. I want the row dimension to switch places with the height dimension, that is, 10-2-6. reshape doesn't achieve this the way I want.

How can this be done? Can I rotate the matrix?

1 Answers
Related