ploting x,y coordinates in time

Hey,
How can I plot 2D graph with points of given x,y coordinates in time? So that at time point 1 the point has position (X1,Y1) at time point 2 the point has position (X2,Y2) etc.
cheers jakub

回答 (2 件)

Steven
Steven 2011 年 10 月 26 日

0 投票

x = [X1, X2, ...];
y = [Y1, Y2, ...];
plot(x,y);
???
Wayne King
Wayne King 2011 年 10 月 26 日

0 投票

Do you want a 3-D plot with time also on the graph? See the help for plot3(), surf().

3 件のコメント

Jakub
Jakub 2011 年 10 月 26 日
Thanks, I ment 3D, sorry for this.
Wayne King
Wayne King 2011 年 10 月 26 日
Then you can use what I suggested.
Picchiata
Picchiata 2019 年 3 月 17 日
IMG_20190317_164758.jpg

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2011 年 10 月 26 日

コメント済み:

2019 年 3 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by