title: Array of Matrices in MATLAB
body: <p>I am looking for a way to store a large variable number of matrixes in an array in MATLAB.</p>
  
  <p>Are there any ways to achieve this?</p>
  
  <p>Example:</p>
  
  <pre><code>for i: 1:unknown
    myArray(i) = zeros(500,800);
  end
  </code></pre>
  
  <p>Where unknown is the varied length of the array, I can revise with additional info if needed.</p>
  
  <p>Update:
  Performance is the main reason I am trying to accomplish this.  I had it before where it would grab the data as a single matrix, show it in real time and then proceed to process the next set of data.</p>
  
  <p>I attempted it using multidimensional arrays as suggested below by Rocco, however my data is so large that I ran out of Memory, I might have to look into another alternative for my case.  Will update as I attempt other suggestions.</p>
  
  <p>Update 2: 
  Thank you all for suggestions, however I should have specified beforehand, precision AND speed are both an integral factor here, I may have to look into going back to my original method before trying 3-d arrays and re-evaluate the method for importing the data.</p>