title: MATLAB: extract every nth element of vector
body: <p>Is there an easy way to extract every nth element of a vector in MATLAB? Say we have </p>
  
  <pre><code>x = linspace(1,10,10);
  </code></pre>
  
  <p>Is there a command something like</p>
  
  <pre><code>y = nth(x,3)
  </code></pre>
  
  <p>so that <code>y = 3 6 9</code>?</p>
  
  <p>Cheers!</p>