Finding frequency of values above a certain value in a matrix
2 次查看(过去 30 天)
显示 更早的评论
I have a 301X301 matrix (M). How do I find number of cells above a certain value?
Thanks in advance.
0 个评论
采纳的回答
Ameer Hamza
2020-10-12
编辑:Ameer Hamza
2020-10-12
thresh; % threshold value
n = nnz(M > thresh) % number of element over 'thresh' value
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!