gt
greater than, > operator.
📝Syntax
C = gt(A, B)
C = (A > B)
📥Input Arguments
Parameter Description
A a variable
B a variable
📤Output Arguments
Parameter Description
C result of A > B
📄Description

C = gt(A, B) returns a logical array with elements set to logical true A is greater than B.

gt compares only the real part of numeric arrays.

💡Examples
eye(2,2) > ones(2, 2)
0 > i
'Nelson' > 'Noslen'
'Nelson' > 'l'
gt(0.8 - 0.6 - 0.2, 0)
🔗See Also
neltlegeeq
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub