title: How can I make XOR work for logical matrix in MATLAB?
body: <pre><code>&gt;&gt; XOR(X,X)
  ??? Undefined function or method 'XOR' for input arguments of type 'logical'.
  </code></pre>
  
  <p>Why <code>XOR</code> can't be used for logical matrix?</p>
  
  <p>And I tried a more simple example:</p>
  
  <pre><code>&gt;&gt; A=[1 0;1 0];
  &gt;&gt; B=[1 1;0 0];
  
  &gt;&gt; XOR(A,B)
  ??? Undefined function or method 'XOR' for input arguments of type 'double'.
  </code></pre>
  
  <p>How can I properly use <code>XOR</code>?</p>