www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ModifyErrorBarsAfterCreationExample.m
%% Modify Error Bars After Creation % Create a line plot with error bars. Assign the errorbar object to the % variable |e|. x = linspace(0,10,10); y = sin(x/2); err = 0.3*ones(size(y)); e = errorbar(x,y,err) %% % Use |e| to access properties of the errorbar object after it is created. % Starting in R2014b, you can use dot notation to set properties. If you % are using an earlier release, use the |set| function instead. e.Marker = '*'; e.MarkerSize = 10; e.Color = 'red'; e.CapSize = 15;