How to make a movie loop / controll speed?

I made a movie using a looping function to generate plots.
Then grabbed and stored frames:
f = getframe;
F = [F f];
clf
Then played it back:
movie(F)
Is there a command I can use to make it loop after it is over?
Is there a command I can use to alter playback speed?
Thank you.

 Accepted Answer

movie(F,n,fps)
n -> number of times movie is played fps -> frames per second to control speed of movie
Hope it helps!!!

1 Comment

Thank you so much! 1/fps = s is much easier than using (and waiting for) pause.

Sign in to comment.

More Answers (0)

Categories

Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!