title: How can I flip a vector such as 1:10 to 10:1 in Matlab?
body: <p>Suppose I have <code>'1 2 3'</code>. I want to get <code>'3 2 1'</code>. How can I get it in Matlab?</p>
  
  <p><strong>More verbose example</strong></p>
  
  <pre><code>N=64;
  [x y]=meshgrid(linspace(-3*pi,3*pi,N),linspace(-3*pi,3*pi,N));
  t=sqrt(x.^2+y.^2);
  
  % Now instead of "f=t+2*sinc(t);", I want to get all elements inverted aka 
  % first element becomes the last and so on -- I thought it would be 
  % sinc(abs(length(t)-t)) but it is not.
  </code></pre>