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

    %% Return Points from Animated Line
% Create an animated line with 10 points. Then, return the points stored in
% the animated line.

% Copyright 2015 The MathWorks, Inc.


h = animatedline(1:10,1:10);

%%
[x,y] = getpoints(h)