%% 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.

e.Marker = '*';
e.MarkerSize = 10;
e.Color = 'red';
e.CapSize = 15;

% Copyright 2012 The MathWorks, Inc.