>

Greater than comparison operator.

Syntax

R = A > B

Inputs

A
Anything that can be logically tested.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix
B
Anything that can be logically tested.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix

Outputs

R
Numerical representation of true or false (1 or 0).
Type: logical

Examples

Scalar example:
R = 1 > 3
R = 0
Matrix example:
R = 1 > [0 1 2]
R = [Matrix] 1 x 3
1  0  0