comet
Create 2-D comet plot.
📝Syntax
comet(y)
comet(x, y)
comet(x, y, p)
comet(ax, x, y, p)
📥Input Arguments
Parameter Description
x, y numeric vectors with the same number of elements.
p body length scale factor in the interval [0, 1).
ax target axes.
📄Description

comet animates a marker head, a trailing body, and a complete trace for a two-dimensional comet plot.

The final axes state contains two animated line objects and one marker-only line object.

💡Examples
t = 0:pi/80:2*pi;
comet(cos(t), sin(t), 0.2)
🔗See Also
comet3animatedlineplot
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub