If I run x=0:0.1:1; x==0.2, I get equality at the third element (as expected). However, if I change it to x=-1:0.1:1; x==0.2 I no longer get any hits. Why the change? (I am familiar with some details of floating point arithmetic, IEE754, 0.1+0.2 etc. -- but why does this happen here?)
linspace, see stackoverflow.com/questions/26292695/…x(13)-0.2is not exactly zero. So, what is the question exactly (if it is not covered by those linked above)?