Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

The short-cut operators cannot be used for vectors & matrices.
  • Loading branch information...
commit 4dab2b615c0df418c7c3f239a553669a18bbefcd 1 parent 8850ec6
@nxtruong authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  @hyperrect/isinside.m
View
2  @hyperrect/isinside.m
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.