Prev: SimEvents and Stateflow - Variable size signal and set attribute block problem!
Next: relational operator tolerences
From: Brandon Moore on 21 Jul 2010 14:30 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). |