comet3(z)
comet3(x, y, z)
comet3(x, y, z, p)
comet3(ax, x, y, z, p)
| Parameter | Description |
|---|---|
| z | z-values: numeric vector. |
| x, y, z | numeric vectors with the same number of elements. |
| p | body length scale factor in the interval [0, 1). |
| ax | target axes. |
comet3 animates a marker head, a trailing body, and a complete trace for a three-dimensional comet plot.
comet3(z) plots z against index values on both x and y axes.
The final axes state contains two animated line objects and one line object for the head marker.
t = -pi:pi/120:pi;
comet3(sin(5 * t), cos(3 * t), t, 0.2)
| Version | Description |
|---|---|
| 2.0.0 | initial version |