MATLAB Answers

0

How can I find the indices of a vector?

Asked by Francesco on 25 Feb 2014
Latest activity Commented on by Francesco on 25 Feb 2014
If I have a row vector,what command allows me to find the indexes that exceed a certain value that I want as a threshold. For example:
A =
0.1222
0.1350
0.1759
0.1110
0.1015
0.2599
0.1465
I would like in output the indices of the value grater or equal than 0.123, for example.

  0 Comments

Sign in to comment.

Tags

2 Answers

Answer by Mischa Kim
on 25 Feb 2014
Edited by Mischa Kim
on 25 Feb 2014
 Accepted Answer

Use
ind = find(A >= 0.123)

  1 Comment

And If I want to extract some the numeric value of an 19x2 double array (for example) according to the number of the ind variable how can I do?

Sign in to comment.


Answer by Thomas
on 25 Feb 2014
Edited by Thomas
on 25 Feb 2014

[r,c]=find(A>=0.123)

  0 Comments

Sign in to comment.