MATLAB: How to combine different histograms

histogramno attemptunclear

I have several different histograms and I want to take as a result a final histogram. I am looking for a way to combine the different histograms and manage to make it one.

Best Answer

As long as the bins cover the same ranges, you can simply add them. If they don't, then you'll have to align the ranges some how, which might mean taking the histograms again with histc and making sure all the bins are in the same places.