Skip to content

le

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

C = le(A, B)

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

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