How can I make the following plot?
Mostrar comentarios más antiguos

Suppose I have time series for PSPP, CBPP3, CSPP, ABSPP. How would you make a plot that looks like the one above?
Respuesta aceptada
Más respuestas (1)
David Hill
el 15 de Abr. de 2020
Assuming your inputs are a row vectors of the same size.
y=[PSPP',CBPP3',CSPP3',ABSPP'];
bar(y,'stacked');
Categorías
Más información sobre Axis Labels en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!