title: Rotating a 3D matrix in MATLAB
body: <p>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. <a href="http://www.mathworks.com/help/techdoc/ref/reshape.html" rel="noreferrer">reshape</a> doesn't achieve this the way I want.</p>
  
  <p>How can this be done? Can I rotate the matrix?</p>