Graphics |
You can save any sequence of graphs and then play the sequence back in a short movie. There are two steps to this process:
getframe
to generate each movie frame.
movie
to run the movie a specified number of times at the specified rate.
Typically, you use getframe
in a for
loop to assemble the array of movie frames. getframe
returns a structure having the following fields:
cdata
- image data in a uint8
matrix. The matrix has dimensions of height-by-width on indexed-color systems and height-by-width-by-3 on truecolor systems.
colormap
- the colormap in an n-by-3 matrix, where n is the number of colors. On truecolor systems, the colormap
field is empty.
See image
for more information on images.
Animation | Example - Visualizing an FFT as a Movie |