ge
Perform greater than or equal comparison, equivalent to the >= operator.
Syntax
ge(x,y)
Inputs
- x,y
- Anything that can be tested logically.
Outputs
- R
- Numerical representation of true or false (1 or 0).
Examples
Scalar ge
example:
ge(2,1)R = 1Matrix ge
example:
ge([2, 1; 3, 4], [1, 2; 3 4])R = [Matrix] 2 x 2
1 0
1 1String ge
example:
ge('test','year')R = [Matrix] 1 x 4
0 1 1 1Comments
If two strings are compared then they must have the same length.