diff scripts/miscellaneous/xor.m @ 6157:045038e0108a

[project @ 2006-11-13 22:22:53 by jwe]
author jwe
date Mon, 13 Nov 2006 22:22:54 +0000
parents 34f96dd5441b
children 93c65f2a5668
line wrap: on
line diff
--- a/scripts/miscellaneous/xor.m	Mon Nov 13 19:20:23 2006 +0000
+++ b/scripts/miscellaneous/xor.m	Mon Nov 13 22:22:54 2006 +0000
@@ -32,7 +32,7 @@
 function z = xor (x, y)
 
   if (nargin == 2)
-    if (isscalar (x) || isscalar (y) || size (x) == size (y))
+    if (isscalar (x) || isscalar (y) || size_equal (x, y))
       z = logical ((x | y) - (x & y));
     else
       error ("xor: x and y must be of common size or scalars");