multiple non uniform distributions most common values identification
3 ビュー (過去 30 日間)
古いコメントを表示
I need to find the most common values from the 3 main distributions (see figure) from dataInput2.

The code below computes the wrong bins (1-2-3) because the distributions are not normal. Any ideas how I could get the values A-B-C instead? (see figure).....Distributions can change limits, so defining boundaries is not an option
[counts, edges] = histcounts(dataInput2(:,i),500);
temp = sort( edges, 'descend' );
spinPeaks = temp(1:injec);
採用された回答
Image Analyst
2018 年 10 月 5 日
Call findpeaks() on counts().
By the way, why is B not at "2"?
4 件のコメント
Image Analyst
2018 年 10 月 9 日
So buy the Signal Processing Toolbox, or else write findpeaks yourself. Or search the internet for things like https://www.mathworks.com/matlabcentral/fileexchange/25500-peakfinder-x0-sel-thresh-extrema-includeendpoints-interpolate
Also see attached for another one.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!