%% Control Error Bar Cap Size
% Control the size of the caps at the end of each error bar by setting the CapSize property to a positive value in points.

x = linspace(0,2,15);
y = exp(x);
err = 0.3*ones(size(y));
errorbar(x,y,err,'CapSize',18)

% Copyright 2012 The MathWorks, Inc.