Owning Class: comparison
Requires: MathScript RT Module
c = ne(a, b)
Determines whether corresponding elements of two matrices are not equal. ne(a, b) is equivalent to a~=b.
| Name | Description |
|---|---|
| a | Specifies a scalar, vector, or matrix. |
| b | Specifies a scalar, vector, or matrix. b is the same size as a unless a or b is a scalar. |
| Name | Description |
|---|---|
| c | Returns a matrix of Boolean values. An element in c is 1 if corresponding elements of a and b are not equal. Otherwise, the element is 0. c is a matrix of the same size as the larger of a and b. |
A = [134, 45, 232]
B = [453, 45, 134]
C = ne(A, B)