title: Build an array of images in Matlab
body: <p>I'm doing a Matlab project and I need to know how to build an array of images.<br>
  I need to have the ability to move through the array in a similar format as a C array with some kind of index.</p>
  
  <p>I tried it with this:</p>
  
  <pre><code>images = [image1 image2 image3 image4 image5];
  </code></pre>
  
  <p>but I get this error: </p>
  
  <blockquote>
    <p>CAT arguments dimensions are not consistent.</p>
  </blockquote>
  
  <p>I checked the <code>size(image)</code> method for every one of the images and all of them are from the same dimension. </p>
  
  <p>What could be wrong or alternatively how I can do this in other way?</p>
  
  <p>thanks.</p>