MATLAB: Is there a 100% stacked area chart in MALTAB

MATLABplottingstacked area chart

I am trying to find any implementation or how to implement a 100% stacked area chart in MATLAB? Any ideas?
Excel has them: Excel charts

Best Answer

doc area
The example from the help:
Y = [1, 5, 3;
3, 2, 7;
1, 5, 3;
2, 6, 1];
area(Y)
grid on
colormap summer
set(gca,'Layer','top')
title 'Stacked Area Plot'
EDIT: I forgot to normalize it...
% Modify Y to get 100% stacked
Y = bsxfun(@rdivide, Y, sum(Y,2));
Oleg