Member of the boolean class.
c = xor(a, b)
Computes the exclusive or of corresponding elements of two input matrices.
| Name | Description |
| a | Specifies a scalar, vector, or matrix. |
| b | Specifies a scalar, vector, or matrix. b must be the same size as a. |
| Name | Description |
| c | Returns a matrix of Boolean values. An element in c is 1 if and only if one but not both of the corresponding elements in a or b is non-zero. Otherwise, the element is 0. |
A = [1, 0]
B = [1, 1]
C = xor(A, B)