Is it possible to easily find the position of a specific value in a list? For example, if the list is {{x1,y1},{x2,y2},...,{xn,yn}} I would like to know the position of y = 123456.78. I would prefer to not use If.
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
|
||||
|
You can use the
returns
Which is a list of the indices of the three occurrences of 3 in the list, |
|||||
|
|
|
|
|||
|
|


Position[]. – J. M.♦ May 5 '12 at 10:20Position, which is good to know. On an unrelated matter: why don't you accept those answers to your previous questions which you like or prefer. – Leonid Shifrin May 5 '12 at 10:41