Code covered by the BSD License  

Highlights from
Matlab Freedom

image thumbnail

Matlab Freedom

by

 

17 Dec 2008 (Updated )

The wave equation applied to the matlab logo, with fewer constraints.

generateMovie.m
%% 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