David
Farruggio

MathGenie

gt, >

Determine greater than

Syntax and Description

A > B returns a logical array with elements set to logical 1 (true) where A is greater than B; otherwise, the element is logical 0 (false). The test compares only the real part of numeric arrays. gt returns logical 0 (false) where A or B have NaN or undefined categorical elements.
gt(A,B) is an alternate way to execute A > B, but is rarely used.

Back to functions