Filter löschen
Filter löschen

How do I plot a line against the y axis?

1 Ansicht (letzte 30 Tage)
AAS
AAS am 8 Sep. 2021
Beantwortet: Star Strider am 8 Sep. 2021
I tried taking the transpose but it does not seem to work.

Akzeptierte Antwort

Star Strider
Star Strider am 8 Sep. 2021
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.
.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by