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

Answers (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');

Asked:

on 21 Apr 2012

Community Treasure Hunt

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

Start Hunting!