How can I make XOR work for logical matrix in MATLAB?
Posted
by Runner
on Stack Overflow
See other posts from Stack Overflow
or by Runner
Published on 2010-04-18T11:09:40Z
Indexed on
2010/04/18
11:13 UTC
Read the original article
Hit count: 322
>> XOR(X,X)
??? Undefined function or method 'XOR' for input arguments of type 'logical'.
Why XOR
can't be used for logical matrix?
And I tried a more simple example:
>> A=[1 0;1 0];
>> B=[1 1;0 0];
>> XOR(A,B)
??? Undefined function or method 'XOR' for input arguments of type 'double'.
How can I properly use XOR
?
© Stack Overflow or respective owner