How do i make 3d plot movie

5 ビュー (過去 30 日間)
Ziv Kassner
Ziv Kassner 2014 年 9 月 18 日
コメント済み: Geoff Hayes 2014 年 9 月 18 日
I have a matrix of a few points (X,Y,Z) of an object that moves. I know how to make the plot3 but I want to show it in a conference and to make the graph draw itself in live. How can I do it easily? (I only know the basics of matlab...)
The code: body_pts=uiimport; figure; plot3(body_pts.data(:,1),body_pts.data(:,2),body_pts.data(:,3),'g'); hold on; plot3(body_pts.data(:,4),body_pts.data(:,5),body_pts.data(:,6),'r'); plot3(body_pts.data(:,7),body_pts.data(:,8),body_pts.data(:,9) ,'g'); plot3(body_pts.data(:,10),body_pts.data(:,11),body_pts.data(:,12) ,'k'); plot3(body_pts.data(:,13),body_pts.data(:,14),body_pts.data(:,15) ,'m'); plot3(body_pts.data(:,34),body_pts.data(:,35),body_pts.data(:,36));
box on; grid on; axis equal; title('mouth in blue, neck in red, abdorax in green, right eye in black, left eye in magneta, stick in yellow');
  1 件のコメント
Geoff Hayes
Geoff Hayes 2014 年 9 月 18 日
Ziv - take a look at the VideoWriter class and in particular the first example which creates an avi of 20 frames from an "animated" plot.

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

回答 (0 件)

カテゴリ

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