Histogram Overlay with Controlled Bins
Show older comments
Hi all, I need some help making as histogram. I have two data sets of 51 by 101. I would like to create a histogram similar to what I could make in excel. I would like to control the bin values themselves as opposed to the number of bins. More specifically, I want the following:
Bins: 0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 3.25 3.50
Where bin 1 goes from 0.00-0.24, bin 2 goes 0.25-50, etc.
I would also like to know how many values from my datasets fit into each bin. Finally, I would like to plot an overlay of these two histograms so I can compare both datasets. However, if two bars are overlayed, I'd like to be able to see the bar behind also. Thank you very much for your help!
1 Comment
Walter Roberson
on 12 Mar 2013
Please show your code.
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!