"Judy " <sauwen.jl@gmail.com> wrote in message <gq18kv$fmn$1@fred.mathworks.com>...
> Hi all,
>
> Is anyone aware of how you may invert a simple y vs. x plot so that it is rotated 90 degrees? I know it seems unconventional, but it is needed.. I was thinking of just switching the y and the x so that plot(x,y) becomes plot(y,x), but connecting the dots wouldn't work. Any thoughts is much appreciated. :) Thanks.
Dear Judy,
To me rotating and inverting are two different issues. When u say u want to rotate it to 90 it means u are infact generating a 3D surface.
then u can use [x,y,z] = (xvalues, yvalues, theta values)
and define theta for pi/2 values..
Thus u have rotated your x , y thing with a surface generated for a quarter..use surf or mesh to see results..
else if u want to invert or flip data just use fliplr or flipud or in the plot tool bar use clockwise or mirror whateevr u need...
I hope it helps.!!
Let me know your progress!!
have a nice weekend..
