To reverse a plot in MATLAB, you can simply use the 'set' function to reverse the x or y-axis.
Here's an example:
main.m116 chars6 lines
In this example, the plot function plots y against x. The set function is used with the gca (get current axis) function to set the direction of the x-axis to be reversed using 'XDir'. The same concept can be applied to reverse the y-axis, by simply changing 'XDir' to 'YDir'.
main.m116 chars6 lines
I hope this helps!
gistlibby LogSnag