%% 3-D Bar Graph with Stacked Style
% Load the data set count.dat, which returns a three-column matrix, count. Store Z as the first 10 rows of count.

load count.dat
Z = count(1:10,:);

%
% Create a 3-D bar graph of Z. Stack the elements in each row of Z by specifying the style option as stacked.

figure
bar3(Z,'stacked')
title('Stacked Style')

% Copyright 2015 The MathWorks, Inc.