title: MATLAB everything except last element
body: <p>Is there a MATLAB shorthand for</p>
  
  <pre><code>v( 1:length(v)-1 ) % everything except last element
  </code></pre>
  
  <p>In Python, its</p>
  
  <pre><code>v[ :-1 ]
  </code></pre>
  
  <p>Does MATLAB have a similar shorthand?</p>