If I create an array x = 0.1:0.05:0.6; and then ask find(x==0.15), I get an empty matrix. It also fails for x==0.40? I don't understand this at all.
Best Answer
It’s called ‘floating point approximation error’. The concept is similar to the decimal approximation of1/3 = 0.33333.... To get around it, you need to state the conditions in yourfind calls to allow for some imprecision.
Run these to get an idea of how the concept applies to your problem:
Best Answer