Permalink
Browse files

Fixed bug in hyperrect: && and || changed to & and |.

The short-cut operators cannot be used for vectors & matrices.
  • Loading branch information...
1 parent 8850ec6 commit 4dab2b615c0df418c7c3f239a553669a18bbefcd @nxtruong committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 @hyperrect/isinside.m
View
@@ -17,7 +17,7 @@
x0 = x0(:);
% Check if x0 is in one of the hyperrectangles
-isin = any(all(bsxfun(@le, obj.L, x0) && bsxfun(@le, x0, obj.H)));
+isin = any(all(bsxfun(@le, obj.L, x0) & bsxfun(@le, x0, obj.H)));
end

0 comments on commit 4dab2b6

Please sign in to comment.