3D to 4D Matrix conversion Matlab
<p>I have a <code>m x n x p</code> 3D matrix available where, <code>m x n</code> are 2D images (row * columns), and <code>p</code> is the number of images. </p>

<p>I need to make this matrix 4D such that the new dimensions are <code>m x n x 1 x p</code>. The third dimension is constant for each of the images.</p>

<p>How can I do this in MATLAB?</p>