Useful Octave Functions

Animate

Animate

You need the following files to properly use the animate function:

Note: before using the function animate, be sure to make an alias for the program Convert under Unix, or DOSKey under DOS, which is to use "convert" instead of the full directory and "convert" to call the Convert program.

This function converts a set of Gnuplot-style formatted data files into a gif animation. For more detailed inctructions, please refer to the documentation.

Example

In Octave, under the directory of the data files:

__gnuplot_raw__ ("set palette file 'jet.clmp'\n");
__gnuplot_set__ xrange [-11:11];
__gnuplot_set__ yrange [-11:11];
__gnuplot_set__ zrange [0:1];
__gnuplot_set__ cbrange [0:1];
__gnuplot_set__ cbtics 0.1;
__gnuplot_set__ nokey;
__gnuplot_raw__ ("splot x with pm3d\n");
animate ("pm|Image @ time = |10:10|20", "binary with image");

The output will be:

©2007 Francis Poulin