MATLAB: Changing horizontal axis to descending order

plotting

Hi all.
Do anyone know how to change the order of xaxis labels in the plot function? Instead of, say, 1 , 2 , 3… i would the axis to plot for …, 3, 2, 1.
Thank a lot,
Mads

Best Answer

set ( gca, 'xdir', 'reverse' )