Replacement X axis with Y axis

Hello Friends,
can i change x axis position with y axis? if i can do that, do i have to change my excel data? i want to show my datas like this.
Thank you

回答(1 个)

I don't want to download the software that site wants me to, but you can just plot the variables differently.
x = -pi/2:0.01:pi/2;
y = sin(x);
plot(y,x); ylabel('x-axis'); xlabel('y-axis');

提问:

2012-4-21

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by