how can I count modal class of histogram?
1 次查看(过去 30 天)
显示 更早的评论
hi
how can we count modal class of histograms? sometimes some histograms have two or more modals and these modals are near to each other. for example in below image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153845/image.jpeg)
in these histograms how we can count the modals of the histogram? I think maybe we have 4 modals...like below. Am I right? or we have just 2 modals? can you guide me to count the modals of histogram?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153847/image.jpeg)
0 个评论
回答(1 个)
Andrew Bliss
2016-6-13
Think about the data not as a histogram, but just an x vs y line plot. Then use a local maxima finding routine such as findpeaks. http://www.mathworks.com/help/signal/ref/findpeaks.html
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!