Borrar filtros
Borrar filtros

multiple non uniform distributions most common values identification

2 visualizaciones (últimos 30 días)
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 comentarios
CPOR
CPOR el 5 de Oct. de 2018
[counts, edges] = histcounts(dataInput2,500);
temp = sort( edges, 'descend' );
spinPeaks = temp(1:injec);
CPOR
CPOR el 5 de Oct. de 2018
above is the actual code that I'm using...

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Oct. de 2018
Call findpeaks() on counts().
By the way, why is B not at "2"?
  4 comentarios
CPOR
CPOR el 9 de Oct. de 2018
correct...what I need is A-B-C

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by