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

    %% Specify Width for Horizontal Bar Graph
% Specify the bar width to 0.4. 

% Copyright 2015 The MathWorks, Inc.


y = [57,91,105,123,131,150,...
     170,203,226.5,249,281.4];

figure;
width = 0.4;
barh(y,width);