How do I make a 2D plot with functions for both axis

So, say I have two functions, x(t) and y(t), where x(t) gives me the x coordinates as a result, and y(t) gives me the y coordinates as a result.
How do I make a line plot in MATLAB where I can have the function x(t) as the x axis and y(t) as the y axis?

 採用された回答

Image Analyst
Image Analyst 2014 年 5 月 29 日

0 投票

xt = some function of t....
yt = some function of t....
plot(xt, yt);
For example
t = -10:10;
xt = t;
yt = t.^2;
plot(xt, yt, 'bo-');

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

2014 年 5 月 29 日

回答済み:

2014 年 5 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by