How to count the data exceeding threshold value?
조회 수: 23 (최근 30일)
이전 댓글 표시
Hi I have two sets of 281x281 data that have been normalised.And it is in percentage form.
Now, I would like to compare between two sets of data by looking at how many data in each sets exceeding threshold value? For eg; the threshold value is 10%
Thanks for your help
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 11월 23일
편집: Walter Roberson
2017년 11월 23일
nnz(FirstMatrix > threshold)
nnz(SecondMatrix > threshold)
You might possibly also want
nnz(FirstMatirx > threshold & SecondMatrix > threshold)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!