The dynamicMovie function

dynamicMovie() is a function that transforms a figure created by the dynamicFigure function into a movie.

For instance:

1% Generation of the dynamic figure
2h = dynamicFigure("gb",IM,"gb",{IM.DWx},"gb",{IM.DWx},...
3    "titles",{"OPD","grad_x OPD","grad_y OPD"});
4
5% Generation of the movie
6dynamicMovie(h,'movieOPD.avi')

creates a movie from the set of images contained in IM.

By default, the frame rate is 1.5 Hz, it can be changed by modifying either the frame rate or the time between two successive images, using a Name-value pattern:

1dynamicMovie(h,'movieOPD.avi', 'rate', 25)
2% or
3dynamicMovie(h,'movieOPD.avi', 'period', 0.02)