How does GT compare logical arrays?

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.
For More Information Please Refer:

You May Also Like to Read: