www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/HorizontalBarGraphOfMatrixDataExample.m
%% Horizontal Bar Graph of Matrix Data % 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 matrix |y|. figure barh(y) %% % By default, |barh| groups the bars by row.