title: Extract field of struct array to new array
body: <p>I have a struct, which has 2 fields: <code>time</code> and <code>pose</code>. I have multiple instances of this struct composed in an array, so an example of this is:</p>
  
  <pre><code>poses(1)
      -time = 1
      -pose = (doesn't Matter)
  poses(2)
      -time = 2
      -pose = (doesn't Matter)
  poses(3)
      -time = 3
      -pose = (doesn't Matter)
  ...
  </code></pre>
  
  <p>Now when I print this:</p>
  
  <pre><code> poses.time
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>ans =
        1
  ans =
        2
  ans =
        3
  </code></pre>
  
  <p>How can I take that output and put it into a vector?</p>