www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/PlotVerticalErrorBarsOfEqualLengthExample.m
%% Plot Vertical Error Bars of Equal Length % Create vectors |x| and |y|. Plot |y| versus |x|. At each data point, % display vertical error bars that are equal in length. x = 1:10:100; y = [20 30 45 40 60 65 80 75 95 90]; err = 8*ones(size(y)); errorbar(x,y,err)