PEAK_MOVIE is a MATLAB program which creates a sample animation of the "peaks" data.
Actually, the program creates individual frames, one at a time, storing each frame as a separate JPG file. This means another program, such as QUICKTIME, is needed to collect the frames into an animation.
MATLAB could have collected the frames into an animation for us, too, but we don't want it to! That's because this program is simply the base example, which we would like to modify so that the frames are computed independently, either using parallel MATLAB's SPMD feature or MATLAB's distributed task programming feature. In both of those options, it is helpful to store each frame in a separate file, to be collected later.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
PEAK_MOVIE is available in a MATLAB version.
FILE_NAME_SEQUENCE, a MATLAB program which demonstrates four ways to generate a sequence of filenames.
MAKE_FRAMES creates the frames, displays them briefly, and stores them as a sequence of files.
VIEW_FRAMES views all the frames created by MAKE_FRAMES, displaying them each for 1 second, but does not store the images as files.
MAKE_ANIMATION creates an empty AVI file, then reads each frame file and adds it to the AVI, creating a single animation file.
Here are the 21 frames created by the command make_frames(20):
Here is an animation created by QUICKTIME from the 21 frames:
Here is an AVI file created by MAKE_ANIMATION:
You can go up one level to the MATLAB source codes.