title: Create 'n' matrices in a loop
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2809635/how-to-concatenate-a-number-to-a-variable-name-in-matlab">How to concatenate a number to a variable name in MATLAB?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi everyone, as the title, i'd like to learn if anyone knows how, in Matlab, create 'n' matrices in a loop.</p>
  
  <p>Like this:</p>
  
  <pre><code>for (i=1:n)
  
  p_i = P(i, :);
  q_i = Q(i, :);
  
  A_i = [p_i, p_i', q_i];
  end
  </code></pre>
  
  <p>Matlab, of course, rewrites n times on the matrix A_i, but i would like to have n matrices of 'i' index.</p>
  
  <p>Thank you in advance, have a good day!!</p>