www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyAnimatedLineColorExample.m
%% Specify Animated Line Color % Set the color of the animated line to red and set its line width to 3 % points. % Copyright 2015 The MathWorks, Inc. x = [1 2]; y = [1 2]; h = animatedline(x,y,'Color','r','LineWidth',3);