Owning Class: boolean
Requires: MathScript RT Module
c = or(a, b)
Determines whether at least one of the corresponding elements in the input matrices is non-zero. or(a, b) is equivalent to a|b.
| Name | Description |
|---|---|
| a | Specifies a scalar, vector, or matrix of Boolean values. |
| b | Specifies a scalar, vector, or matrix of Boolean values. b must be the same size as a. |
| Name | Description |
|---|---|
| c | Returns Boolean values, where an element in c is 1 if at least one of the corresponding elements in a and b is non-zero. Otherwise, the element is 0. c is a scalar, vector, or matrix of the same size as a. |
A = [1, 0]
B = [1, 1]
C = or(A, B)