MATLAB: Plots Limits in MatlabplotplottingxlimHi, I want the X asis to plot from 1 to -1 and I tired to do xlim[(1 -1)] and -1 to 1 It didn't work, I want i to start from 1 and end in -1 which is reverse than normal plots what I got it from -1 to 1 on te plot? Best AnswerYou need to set xdir property to 'reverse'xlim([-1 1])set(gca, 'xdir', 'reverse') Related QuestionRemove certain yticklabels from axisSubplots limitDeletting X and Y axes ticksMatrix limitsRemoving Xaxis and Yaxis valuesMatrix limitsPlotting and reversing axis directionEfficiently setting lower axis limit
Best Answer