I have a vector of unique numbers and want to find the index for a
certain number. Tried to use the find function, but it seems very
unstable. The problem is best described by an example:
Say I create the following vector: [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
0.9 1]. Then find(x==0.1) returns 2 and find(x==0.2) returns 3, but
find(x==0.3) returns en empty matrix!
Am I doing something wrong here, or have the find function just lost