title: splitting 1 row into multiple rows in octave/matlab
body: <p>I have 1 row with hundreds of columns in an array in octave/matlab</p>
  
  <pre><code>example of a row:  
  540 6.28319 0 538.3 6.26573 0
  </code></pre>
  
  <p>I would like it to look like this.  Every 3rd column move data to next row.</p>
  
  <pre><code>540 6.28319 0 
  538.3 6.26573 0
  </code></pre>
  
  <p>I did try: </p>
  
  <pre><code>tmp = [540 6.28319 0 538.3 6.26573 0];
  a = reshape(tmp, [], 3); but that gives me 
  540 0 6.26573
  6.28319 538.3 0
  </code></pre>
  
  <p>I'm trying to get </p>
  
  <pre><code>540 6.28319 0 
  538.3 6.26573 0
  </code></pre>
  
  <p>How can I go about doing this?
  Thanks</p>