From: Andy on
"Brandon Moore" <moorebj.nospamplease(a)umich.edu> wrote in message <i27ebu$mkb$1(a)fred.mathworks.com>...
> Wondering if there is some easy way to adjust the tolerances on the relational operators (==, <, etc.) in MATLAB so I don't have things like sum([0.4 0.3 0.2 0.1])==1 come back false. I.e., I don't want to have to include a +tolerance or -tolerance term every time I use a relational operator in order for it to not have these sort of errors (or rather, to error more on the side of logical true instead of logical false).

You could overload these with your own function.