M))
</pre><pre class="codeoutput">     4

     4

</pre><pre class="language-matlab">info.dime.dim(2:5)
size(M)
</pre><pre class="codeoutput">   132   172   136     4

   132   172   136     4

</pre><h2>Visualization in 2D<a name="4"></a></h2><p>View a 2D slice of the image using the Image Toolbox function <i>imagesc</i></p><pre class="language-matlab">im = flipud(squeeze(M(65,:,:,1))');
imagesc(im)
colormap <span class="string">gray</span>, axis <span class="string">tight</span>
</pre><img vspace="5" hspa