%% 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')