Skip to content

gt

Element-wise greater-than test (function form of >).

C = gt(A, B)

Returns a logical array where each element is true if A(i) > B(i).

gt([1 2 3], 2) % [0 0 1]
  • ge — Element-wise greater-than-or-equal test (function form of >=).
  • lt — Element-wise less-than test (function form of <).
  • le — Element-wise less-than-or-equal test (function form of <=).