title: Matlab "for loop" to create a matrix
body: <p>I have a fairly large vector named <code>blender</code>. I have extracted <code>n</code> elements for which <code>blender</code> is greater than <code>x</code> (irrelevant). Now my difficulty is the following:</p>
  
  <p>I am trying to create a (<code>21 x n</code>) matrix with each element of blender plus 10 things before, and the 10 things after. </p>
  
  <pre><code>element=find(blender &gt;= 120);
  </code></pre>
  
  <p>I have been trying variations of the following:</p>
  
  <pre><code>for i=element(1:end)
      Matrix(i)= Matrix(blender(i-10:i+10));
  end
  </code></pre>
  
  <p>then I want to plot one column of the matrix at the time when I hit Enter. 
  This second part I can figure out later, but I would appreciate some help making the Matrix </p>
  
  <p>Thanks</p>