Azzera filtri
Azzera filtri

2次元プロットをアニメーション化する方法

10 visualizzazioni (ultimi 30 giorni)
kanako machii
kanako machii il 25 Ott 2020
Risposto: Atsushi Ohashi il 29 Ott 2020
2次元プロットをアニメーション化する方法を教えてください。
例えばAという10個の点群(A1(x1,y1), A2(x2,y2)..., A10(x10,y10)),同様にB,Cの点群があるとしたとき,
プロットの様子がA→B→Cに移り変わる様子をアニメーション化したいです。
宜しくお願い致します。

Risposte (1)

Atsushi Ohashi
Atsushi Ohashi il 29 Ott 2020
プロットのアニメーション化のページを参考に作成してみてはいかがでしょうか?
流れとしては、
1.A,B,Cのデータをセル配列にまとめる
2."animatedline"を利用してAを表示し、"getframe" で表示をキャプチャ
3.キャプチャ後、Aの表示を消す
4.「2,3」をB,Cに対して実行
5.”getframe”で取得したデータを"movie"で表示
になると思います。

Community Treasure Hunt

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

Start Hunting!