フィルターのクリア

Saving an animation into an avi file

3 ビュー (過去 30 日間)
Rildo
Rildo 2014 年 10 月 20 日
回答済み: Image Analyst 2014 年 10 月 21 日
How can I save the animation that results from calling playTrajectory(10,pi/4) into an avi file... I know I have to use the movietoavi function but I'm not sure how I would do that.
function [x , y]= playTrajectory(Vo,O)
global g
g = 9.8 ; % m/s
for t = (0:0.05:1.5);
x = Vo * cos(O) * t ;
y = Vo*(sin(O)*t)-(0.5*g*(t.^2));
plot(x,y,'*')
axis([0,10.61,0,2.55]); xlabel('range') ylabel('height') pause (1) ; end
end

回答 (1 件)

Image Analyst
Image Analyst 2014 年 10 月 21 日
See my well commented demo, attached.

カテゴリ

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