title: Get data in Y-Z dimension of 3D matrix
body: <p>I have a 3D matrix with size is <code>120x256x256</code> where 120 is number of slices and 256x256 is size of each image slice. I want to extract the 3D matrix into 2D image (256x256). How to get the data of 3D matrix. I try to with matlab code:</p>
  
  <pre><code>Img_3D=zeros(120,256,256);
  for numSlice=1:120
     Img2D=Img_3D(numSlice,:,:);
  end
  </code></pre>
  
  <p>But it does not work. It return a matrix that size is <code>1x256x256</code>, instead of <code>256x256</code> matrix. How to fix my problem. Thank you so much</p>