%% Stacked Area Plot
% Plot the data in Y as an area plot. Each subsequent column of Y is stacked on top of the previous data.

Y = [1, 5, 3;
     3, 2, 7;
     1, 5, 3;
     2, 6, 1];

figure
area(Y)

% Copyright 2015 The MathWorks, Inc.