Finding frequency of values above a certain value in a matrix
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ishani Mukherjee
le 12 Oct 2020
Commenté : Ameer Hamza
le 12 Oct 2020
I have a 301X301 matrix (M). How do I find number of cells above a certain value?
Thanks in advance.
0 commentaires
Réponse acceptée
Ameer Hamza
le 12 Oct 2020
Modifié(e) : Ameer Hamza
le 12 Oct 2020
thresh; % threshold value
n = nnz(M > thresh) % number of element over 'thresh' value
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Linear Algebra dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!