How to plot a 2d parametric equation
128 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MIGUEL HERNANDEZ
am 28 Sep. 2016
Bearbeitet: Rachel A. Eaglin
am 19 Feb. 2021
Equation is x=2t+4, y=t-1
This is what I did:
t=(1:5)
x=2t+4
t=t-1
plot (x,y)
And I obtained a diagonal line.
Note: t=(1:5) is not part of the exercise, I just added to see what could happen.
0 Kommentare
Akzeptierte Antwort
KSSV
am 28 Sep. 2016
N = 100 ;
t = linspace(0,1,N) ;
x=2*t+4 ;
y=t-1 ;
plot(x,t)
2 Kommentare
Rachel A. Eaglin
am 19 Feb. 2021
Bearbeitet: Rachel A. Eaglin
am 19 Feb. 2021
You can write this on the line after the plot() command
ylim([-1 4]);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!