Is the logical OR function. Imaginary components of x and y are ignored.
Syntax |
Description |
---|---|
out = y | x; |
If the real part of either or both of x,y is non-zero, then return 1. Otherwise return 0. |
y or x; |
Same as |. |
Examples
This example shows the usage of the "|" and OR function.
? (2) | (4); result: 1 ?(3 > 4) or (4 >3); result: 1 ? (0+1i) | (0); result: 0
See Also
List of commands , == , != , <= , >= , < , > , & , and , | , or , ! , ~