title: Changing variable name in loop
body: <p>This is in continuation to my question  <a href="https://stackoverflow.com/questions/14379451/extract-matrix-from-existing-matrix">Extract matrix from existing matrix</a>
  Now I am separating these matrices by the code <strong><em>(Not correct !)</em></strong><br></p>
  
  <pre><code>for i = 3:-1:0
      mat = m((sum((m == 0), 2)==i),:)
  end
  </code></pre>
  
  <p><strong>The  above part is an update to my original question</strong>
  <br>I want to name it accordingly, like<br></p>
  
  <pre><code>mat1
  mat2
  mat3
  mat4
  </code></pre>
  
  <p>Can anybody suggest an easy method to it?</p>