addpoints(an, x, y)
addpoints(an, x, y, z)
| Parameter | Description |
|---|---|
| an | animatedline graphics object. |
| x, y, z | numeric coordinates with the same number of elements. |
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.
an = animatedline('MaximumNumPoints', 50);
x = linspace(0, 4*pi, 200);
addpoints(an, x, sin(x));
drawnow
| Version | Description |
|---|---|
| 2.0.0 | initial version |