==
Equality comparison operator.
Syntax
R = ((A) == (B))
Inputs
- A
- Anything that can be logically tested.
- B
- Anything that can be logically tested.
Outputs
- R
- Numerical representation of true or false (1 or 0).
Examples
R = (4==3)
R = 0
R = ([1 2;3 4] == [1 3;2 4])
R = [Matrix] 2 x 2
1 0
0 1
Comments
The output R is typically used in an if condition, if (R)
.