Finding frequency of values above a certain value in a matrix
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ishani Mukherjee
il 12 Ott 2020
Commentato: Ameer Hamza
il 12 Ott 2020
I have a 301X301 matrix (M). How do I find number of cells above a certain value?
Thanks in advance.
0 Commenti
Risposta accettata
Ameer Hamza
il 12 Ott 2020
Modificato: Ameer Hamza
il 12 Ott 2020
thresh; % threshold value
n = nnz(M > thresh) % number of element over 'thresh' value
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Linear Algebra in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!