When a vector of type double is created using the colon operator, arithmetic/relational operations on the vector may produce incorrect results.
myvector = 0:.1:1.1;find(myvector == .9)
generates the following output:
ans = Empty matrix: 1-by-0
Best Answer