How to count the data exceeding threshold value?

22 ビュー (過去 30 日間)
Alya Z
Alya Z 2017 年 11 月 23 日
編集済み: Walter Roberson 2017 年 11 月 23 日
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

回答 (1 件)

Walter Roberson
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)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by