MATLAB Answers

0

how to create plot of inverse data?

Asked by uncung fgv on 27 Mar 2012
I want to create figure of inverse data.
i already created plot. on Editor Plot, there is Inverse menu. when i click my plot turn to inverse but the axis remains same.
now i want to create inverse plot from matlab command.
i have
X= bla bla bla bla
Y= bla bla bla
i do inversion.
how to create plot?

  3 Comments

Have you tried plot(Y,X)?
I didn't find the "inverse menu" on the plot figure's toolbar or pulldown menu. Is it under the File, Edit, View, Insert, Tools, Desktop, Window, or Help menu?
it is on Editor Plot (right click of mouse). but i am interesting to do it in Command.

Sign in to comment.

3 Answers

Answer by Andrei Bobrov
on 28 Mar 2012
 Accepted Answer

so? pg
set(gca,'XDir','reverse')

  1 Comment

simply you just displying the plot into reverse, but not change the axis.
actually now i try to use this
flipud(X)
it is same with inverse but perform new axis/different.
while if we inverse our plot then copy it, the the paste will back to our previous non inverse.
but not this FLIPUD (X)

Sign in to comment.


Answer by C.J. Harris on 28 Mar 2012

Is it the y-axis you want to reverse?
If so:
axis ij

  1 Comment

Sign in to comment.


Answer by uncung fgv on 28 Mar 2012

i want copy the result of plot inverse to my old plot. but when i copy the inverse back to the non inverse (same as previously).

  0 Comments

Sign in to comment.