I want to know x,y coordinate

1 Ansicht (letzte 30 Tage)
Jong Hyun Lee
Jong Hyun Lee am 31 Mär. 2022
Beantwortet: Torsten am 31 Mär. 2022
t=0:0.01:10
x=t.^3+t
y=t.^2+2.*t.^3
plot(x,y)
How should I write the code to obtain x,y coordinate for specific value of t?
ex)
When I define t=5
the result display x=@ and y=@

Antworten (2)

KSSV
KSSV am 31 Mär. 2022
Already you have the code.
t=0:0.01:10 ;
x=t.^3+t ;
y=t.^2+2.*t.^3 ;
plot(x,y)

Torsten
Torsten am 31 Mär. 2022
f = @(t) [t.^3 + t , t.^2 + 2*t.^3];
f(0.5)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by