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
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!