How do I plot a line against the y axis?

2 ビュー (過去 30 日間)
AAS
AAS 2021 年 9 月 8 日
回答済み: Star Strider 2021 年 9 月 8 日
I tried taking the transpose but it does not seem to work.

採用された回答

Star Strider
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 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by