C = xor(A,B)
C = xor(A,B) is the symmetric difference of the nonzero structures of A and B, that is, C(i,j) is one if A(i,j) or B(i,j), but not both, is nonzero.
S or T has a nonzero element and the other matrix does not,
spy(xor(S,T))
&,|,all,any,find
(c) Copyright 1994 by The MathWorks, Inc.