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

    %% Specify Bar Locations
% Specify the bar locations along the _x_-axis.   

% Copyright 2015 The MathWorks, Inc.


%%  
x = 1900:10:2000;
y = [75 91 105 123.5 131 150 179 203 226 249 281.5];
bar(x,y)