www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ChangeBaselineValueForHorizontalBarGraphExample.m
%% Change Baseline Value for Horizontal Bar Graph % Load the data set |count.dat|, which returns a three-column matrix, |count|. % Store |y| as the first six rows of |count|. % Copyright 2015 The MathWorks, Inc. load count.dat y = count(1:6,:); %% % Create a horizontal bar graph of |y| and set the basevalue to 25. figure barh(y,'BaseValue',25)