Code covered by the BSD License
%% Generate the movie %% Lock and load clear; aviobj = avifile( 'matlabFreedom.avi', 'compression', 'XVID', ... 'fps', 15 ); for i = 1:1000 a = load ( sprintf ( 'Image%03d.mat', i ) ); frameData = a.F.cdata; aviobj = addframe( aviobj, frameData ); fprintf ( '.' ); if ( i/50 == round(i/50) ); fprintf ( '\n' ); end drawnow; end aviobj = close(aviobj);
Contact us