www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/BarGraphStylesExample.m
%% Display Stacked Bars % Display one bar for each row of the matrix. The height of each bar is % the sum of the elements in the row. % Copyright 2015 The MathWorks, Inc. y = [2 2 3; 2 5 6; 2 8 9; 2 11 12]; bar(y,'stacked')