How do I find list down values in a matrix that is larger than 0.75?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi! So I want to list down the entries that the data in my matrix is larger or equal to a particular value, say 0.75.
I only want the upper triangle too, so I have already did B = triu(A,1) to my data, and I know that I can just do B >= 0.75. The problem is that I only know where the values are above 0.75, but not like a list of their entry, e.g. (1,2), (4,7)...
Is there a way for me to add something to do that? Thanks!
採用された回答
Azzi Abdelmalek
2016 年 8 月 26 日
Out=B (B>=0.75)
3 件のコメント
Azzi Abdelmalek
2016 年 8 月 26 日
I don t know what you mean by the entries. You can get the corresponding indices
[x, y]=find (B>=0.75)
その他の回答 (1 件)
Andrei Bobrov
2016 年 8 月 26 日
編集済み: Andrei Bobrov
2016 年 8 月 26 日
Like said Stephen Cobeldick:
[ii,jj] = find(B > .75);
out = [ii,jj];
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!