How can I make the following plot?
Show older comments

Suppose I have time series for PSPP, CBPP3, CSPP, ABSPP. How would you make a plot that looks like the one above?
Accepted Answer
More Answers (1)
David Hill
on 15 Apr 2020
Assuming your inputs are a row vectors of the same size.
y=[PSPP',CBPP3',CSPP3',ABSPP'];
bar(y,'stacked');
Categories
Find more on Axis Labels in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!