Mostrar comentarios más antiguos
Hi,
I have a long matrix of breakpoints: for example, 0.19 0.49 0.69 0.93 1.69
is there an easy function to determine if I have a value of 0.55 for example that this value would fall under the third category since it is between 0.49 and 0.69?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 11 de Jun. de 2011
[v, idx] = histc(x, [-inf breakpoints]);
then the value you want is idx
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!