Any way to stack histograms?

I have 11 matrices, each that I want to pull the 9th column from it and plot a stacked histogram (each matrix would need to have a separate color associated with the histogram stack). If I can't do a stacked histogram, can I do a bar chart that would look exactly like a stacked histogram? Thanks!

Respuestas (2)

Teja Muppirala
Teja Muppirala el 12 de Oct. de 2012

0 votos

Can you use the 'stacked' option, as described in the help for BAR?
bar(rand(10,5),'stacked'), colormap(cool)
Keith
Keith el 18 de En. de 2013
Editada: Keith el 18 de En. de 2013

0 votos

I am trying to solve this problem as well. I think I will have to write it myself but was hoping some part of it existed already. In principle the output should be similar to that of ROOT

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Preguntada:

el 12 de Oct. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by