Fixed rather embarassing bug in EQUALITY, with Natesh

release/4.3a0
Frank Dellaert 2012-11-12 21:40:13 +00:00
parent 69c5c9f1ca
commit dec1774923
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ if nargin<4,tol=1e-9;end
sameSize = size(expected)==size(actual);
if all(sameSize)
equal = abs(expected-actual)<tol;
if ~all(equal)
if ~all(equal(:))
warning(['EQUALITY ' name ' fails']);
expected
actual