title: How to save different matrices in a variable using R?
body: <p>I want to save different matrices into one variable, like an array, for example:
  I have matrix 1:</p>
  
  <pre><code>ma1&lt;-matrix(c(1:8),4)
  </code></pre>
  
  <p>and matrix 2:</p>
  
  <pre><code>ma2&lt;-matrix(c(2,1,3,4,5,6,4,5),4)
  </code></pre>
  
  <p>Now, I want to save these matrices into one more dimensional variable, so like this:</p>
  
  <pre><code>multiarray&lt;-0
  multiarray[1]&lt;-ma1
  multiarray[2]&lt;-ma2
  </code></pre>
  
  <p>(I want to do this later on with a loop.)</p>
  
  <p>It would be important, that the single output, e.g. multiarray[1] is again a matrix.
  How can I do this?</p>