Skip to content

lt

Element-wise less-than test (function form of <).

C = lt(A, B)

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

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