~
Logical negation, the 'not' operator.
Syntax
R = ~A
Inputs
- A
- A variable that can be converted to a logical value.
Outputs
- R
- Numerical representation of true or false (1 or 0).
Example
Matrix example.
R = ~[7 0 2]
R = [Matrix] 1 x 3
0 1 0