Suppose I have '1 2 3'. I want to get '3 2 1'. How can I get it in Matlab?
More verbose example
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.
Use the MATLAB function
fliplr.