Any way to stack histograms?

6 次查看(过去 30 天)
Russ
Russ 2012-10-12
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!

回答(2 个)

Teja Muppirala
Teja Muppirala 2012-10-12
Can you use the 'stacked' option, as described in the help for BAR?
bar(rand(10,5),'stacked'), colormap(cool)

Keith
Keith 2013-1-18
编辑:Keith 2013-1-18
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

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by