addpoints
Add points to animated line.
📝Syntax
addpoints(an, x, y)
addpoints(an, x, y, z)
📥Input Arguments
Parameter Description
an animatedline graphics object.
x, y, z numeric coordinates with the same number of elements.
📄Description

addpoints appends coordinates to an animated line and refreshes the parent figure.

If z is omitted, zero z-coordinates are stored.

The MaximumNumPoints property limits stored coordinates and keeps the most recently added points.

💡Examples
an = animatedline('MaximumNumPoints', 50);
x = linspace(0, 4*pi, 200);
addpoints(an, x, sin(x));
drawnow
🔗See Also
animatedlineclearpointsgetpoints
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub