title: Producing 2D array from a 1D array in MATLAB
body: <p>Does anyone know if there is a way to produce a 2D array from a 1D array, where the rows in the 2D are generated by repeating the corresponding elements in the 1D array. </p>
  
  <p>I.e.:</p>
  
  <pre><code>1D array      2D array
  
    |1|       |1 1 1 1 1|
    |2|       |2 2 2 2 2|
    |3|  -&gt;   |3 3 3 3 3|
    |4|       |4 4 4 4 4|
    |5|       |5 5 5 5 5|
  </code></pre>