www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ControlErrorBarCapSizeExample.m
%% 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)