Finding frequency of values above a certain value in a matrix
2 views (last 30 days)
Show older comments
Ishani Mukherjee
on 12 Oct 2020
Commented: Ameer Hamza
on 12 Oct 2020
I have a 301X301 matrix (M). How do I find number of cells above a certain value?
Thanks in advance.
0 Comments
Accepted Answer
Ameer Hamza
on 12 Oct 2020
Edited: Ameer Hamza
on 12 Oct 2020
thresh; % threshold value
n = nnz(M > thresh) % number of element over 'thresh' value
2 Comments
More Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!