How do I Plot density probability values over a histogram as colormap?
조회 수: 15 (최근 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에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
