How do I find the most frequently occurring range of values in a matrix?

9 vues (au cours des 30 derniers jours)
Hello, I have a set of values with the following distribution:
My goal is to extract the most frequent range in this data set. So, this specific part:
I am aware of the mode function, but as far as I am aware, this is only for finding the singular most frequent value in a data set. How could I extract the most common range of values (so in this case this would be from 100 to about 120 or something) and store these most common values in another array? Thanks.

Réponse acceptée

David Hill
David Hill le 1 Fév 2022
use histcounts()
  1 commentaire
Andrea Labudzki
Andrea Labudzki le 1 Fév 2022
Modifié(e) : Andrea Labudzki le 1 Fév 2022
thanks! i'll try this out
Edit: Hi, this did exactly what I needed it to do! Thanks a lot

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by