How do I plot a line against the y axis?

조회 수: 1 (최근 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 CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by