Produce a simple comet style animation along the trajectory provided by the input coordinate vectors (x, y, z).
If only z is specified then x, y default to the indices of z.
The speed of the comet may be controlled by p, which represents the time each point is displayed before moving to the next one. The default for p is 0.1 seconds.
If the first argument hax is an axes handle, then plot into this axis,
rather than the current axes returned by gca
.
See also: comet.
The following code
clf; title ("comet3() animation"); view (3); hold on; t = 0:pi/20:5*pi; comet3 (cos (t), sin (t), t, 0.05); hold off;
Produces the following figure
Figure 1 |
---|
Package: octave