Doubt determine peak value in histogram

have all dear partner in excellent day.
Sorry for the inconvenience.
I have a doubt and maybe you could help me understand.
My question is the following:
Suppose we have a histogram formed by different values.
Y: Represents histogram difference values
X: Consecutive frames
Example:
2.15 3.45 3.67 2.34 1.09 2.20 2.15 .......
a low peak value = 1.09 Is that correct or not?
and what would be the value of that corresponds to half the peak value on the right slope of the peak?
Please be kind enough to clarify the doubt .. Thank you and again my apologize for the inconvenience

답변 (1개)

Image Analyst
Image Analyst 2019년 3월 17일
편집: Image Analyst 2019년 3월 17일

0 개 추천

It is not correct. The lowest value in your data will be in the leftmost bin, which is not necessarily the tallest peak of the bins.
To get the tallest bin (peak value) you need to do
counts = histcounts(data);
[maxCounts, tallestBin] = max(counts);
What are your bin edges, or how many bins do you have and what is the range of your data?

카테고리

도움말 센터File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

질문:

2019년 3월 17일

편집:

2019년 3월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by