How do I plot a line against the y axis?
1 次查看(过去 30 天)
显示 更早的评论
I tried taking the transpose but it does not seem to work.
0 个评论
采纳的回答
Star Strider
2021-9-8
I am not certain what you want to do.
Perhaps —
x = linspace(0, 2*pi);
y = sin(x);
subplot(2,1,1)
plot(x, y)
grid
ylim([-1 1]*1.1)
subplot(2,1,2)
plot(y, x)
grid
xlim([-1 1]*1.1)
Experiment to get different results.
.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!