www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotErrorBarsWithNoLineExample.m

    %% Plot Error Bars with No Line
% Plot vectors |y| versus |x|. At each data point, display a circle marker
% with both vertical and horiztonal error bars. Do not display the line
% that connects the data points by omitting the line style option for the
% |linespec| input argument.

x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = [4 3 5 3 5 3 6 4 3 3];
errorbar(x,y,err,'both','o')