Given the vector x = [ 1 23 0.3 -5 -pi]
If I ran the command find(x<1)
MATLAB would answer:
0.3 -5 -pi
3
3 4 5
If I ran the command find(x>1)
23
2
1 5