How do I Plot density probability values over a histogram as colormap?
2 次查看(过去 30 天)
显示 更早的评论
I have a histogram as follows:
First, I want to know how to plot probability density values as colormap over it.
second, is there any way I can retreive X_data versus corresponding normalized frequency as two separate vectors?
Thanks
0 个评论
采纳的回答
Image Analyst
2018-6-6
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)
2 个评论
Image Analyst
2018-6-6
You can get the handle to each bar and change it's color. See attached demo.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!