| Author |
Comment/Response |
Nasser M. Abbasi
|
09/08/12 02:18am
may be
b = {1, 2, 3, 4, 5};
For[v = 1, v <= Length[b], v++,
If[b[[v]] == 3, Print[v]]
]
rememeber that lists in Mathematica start at index 1 not zero. zero is the head of the expression not the data in the list.
URL: , |
|