title: Converting structure to array
body: <p>Here is a simplified version of a
  consider the data structure below in Matlab:</p>
  
  <pre><code> struct(1).left=1;struct(2).left=2;struct(3).left=3;
  </code></pre>
  
  <p>Now I would like to copy that into an array of integer</p>
  
  <pre><code>K&gt;&gt; arrayL(1:3)=struct.left
  </code></pre>
  
  <p>arrayL =</p>
  
  <pre><code> 1     1     1
  </code></pre>
  
  <p>why it only copeis the first elements of struct.left into arrayL? how can I copy the entire struct(1:3) into arrayL  so that it contains 1,2,3?
  Thanks</p>