Analyzing a histogram in Matlab
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a histogram with the horizontal values ranging from (0-255), and the vertical values ranging from (0-200), which represents the time of occurence of value in the horizontal axis. Sinze I have a kind of large range on the horizontal axis (0-255), it is sometimes not clear which value is repeated how many times. Is there a way in Matlab to view this more clear? Such that for example I can obtain a list as follows:
0 ---> 5
1 ---> 7
2 ---> 3
Where 5, 7, and 3 represent the time of occurence.
Thanks.
댓글 수: 0
답변 (1개)
Walter Roberson
2013년 2월 23일
Instead of having hist() display the answer, assign it to a variable:
[counts, centers] = hist(....);
then the bin centered around centers(K) occurred counts(K) times.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!