title: how rearrange data in a matrix?
body: <p>I have a data as:</p>
  
  <pre><code>data=[1 2 3 4 5 6 7 8];
  </code></pre>
  
  <p>I need a new data matrix (4 x 8),like this:</p>
  
  <pre><code>new_data =[ 1 2 0 0 0 0 0 0
              0 0 3 4 0 0 0 0
              0 0 0 0 5 6 0 0
              0 0 0 0 0 0 7 8 ]
  </code></pre>
  
  <p>How to do it using a FOR loop ? Any help?</p>