Effacer les filtres
Effacer les filtres

multiple non uniform distributions most common values identification

2 vues (au cours des 30 derniers jours)
CPOR
CPOR le 5 Oct 2018
Commenté : Image Analyst le 9 Oct 2018
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);
  2 commentaires
CPOR
CPOR le 5 Oct 2018
[counts, edges] = histcounts(dataInput2,500);
temp = sort( edges, 'descend' );
spinPeaks = temp(1:injec);
CPOR
CPOR le 5 Oct 2018
above is the actual code that I'm using...

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 5 Oct 2018
Call findpeaks() on counts().
By the way, why is B not at "2"?
  4 commentaires
CPOR
CPOR le 9 Oct 2018
correct...what I need is A-B-C
Image Analyst
Image Analyst le 9 Oct 2018
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by