www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/AddFivePointsToAnimatedLineExample.m

    %% Add Five Points to Animated Line
% Create an animated line object with no data. Then, add five points to the
% line. Use a circle to mark each point.

% Copyright 2015 The MathWorks, Inc.


h = animatedline('Marker','o');
x = 1:5;
y = 1:5;
addpoints(h,x,y)