フィルターのクリア

Create and save animated line from x and y values that correspond to time data

1 回表示 (過去 30 日間)
Walter Mabry
Walter Mabry 2021 年 2 月 11 日
コメント済み: Adam Danz 2021 年 2 月 11 日
I have data from a projectile. I have x and y positions. I also have a vector with corresponding time data for the x and y positions. I want to plot the projectile path ( x vs y) as an animated line where points are produced at the time in the corresponding time vector. I would also like to display a timer if possible.

回答 (1 件)

Adam Danz
Adam Danz 2021 年 2 月 11 日
If you get stuck, show us what you've got and describe the problem so we can focus in on it.
  2 件のコメント
Walter Mabry
Walter Mabry 2021 年 2 月 11 日
Thanks! But none of these techniques incorporate time vector. I have three vectors xPos, yPos, and Time.
xPos= [0.266 0.8903 2.033 3.5614 5.564 8.0130];
yPos = [0.8307 3.3228 7.4763 13.2911 20.7674 29.9051];
Time = [0 0.2 0.4 .6 0.8 1];
This is just a sample of my data. It is the first second. I want the data to plot over time where corresponding to the time vector.
Adam Danz
Adam Danz 2021 年 2 月 11 日
All three methods demonstrate general approaches to animation. Could you explain why they don't work with your intentions?
Could you explain, or better yet, show us what plot you're making with those three variables?

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

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by