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' ) Related SolutionsMATLAB: Axis tick numbers in descending order xticklabels([1:10]) %an example set ( gca, 'xdir', 'reverse' ) MATLAB: Change the axis tick set(gca,'xtick',1:1:10)replace 10 with your larger value Related QuestionTiedrank in descending orderDeletting X and Y axes ticksSorting Vectors descending orderWhite space at the beginning and ending of xaxisHow to remove ticks from the x-axis
Best Answer