MATLAB: How to Plot density probability values over a histogram as colormap

colormaphistogram

Best Answer

I don't know what "plot probability density values as colormap over it." means. Please attach a screenshot of what you'd like to see.
The histogram() function returns an object that has the x values (bin edges), as well as the y values (counts) and a whole bunch of other things. Look at is in the variable editor.
histObject = histogram(yourData)