I want to know x,y coordinate

조회 수: 2 (최근 30일)
Jong Hyun Lee
Jong Hyun Lee 2022년 3월 31일
답변: Torsten 2022년 3월 31일
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=@

답변 (2개)

KSSV
KSSV 2022년 3월 31일
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 2022년 3월 31일
f = @(t) [t.^3 + t , t.^2 + 2*t.^3];
f(0.5)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by