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!