From: someone on
"Andy " <myfakeemailaddress(a)gmail.com> wrote in message
snip ...
>
> That said, if you don't want to worry, you can just create your own wrapper function:
>
> function tf = isClose(A,B,tolerance)
> tf = (A-B) <= tolerance;
> end
>
> This would at least save some typing in the long run, while making your code easy to read (not risking any confusion that might occur with an overloaded eq).

I think you want to change the above to:

> tf = abs(A-B) <= tolerance;