How do I find list down values in a matrix that is larger than 0.75?
Show older comments
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!
1 Comment
Stephen23
on 26 Aug 2016
doc find
Accepted Answer
More Answers (1)
Andrei Bobrov
on 26 Aug 2016
Edited: Andrei Bobrov
on 26 Aug 2016
Like said Stephen Cobeldick:
[ii,jj] = find(B > .75);
out = [ii,jj];
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!