Main Content

clearpoints

Clear points from animated line

Description

clearpoints(an) clears all points from the animated line specified by an. Create an animated line with the animatedline function. If you want to display the update on the screen, use drawnow after using clearpoints.

example

Examples

collapse all

Create an animated line with 10 points. Then, clear the points stored in the animated line.

an = animatedline(1:10,1:10);
clearpoints(an)

The animated line still exists, but has no data.

Input Arguments

collapse all

AnimatedLine object. Create an AnimatedLine object using the animatedline function.

Version History

Introduced in R2014b