Skip to content

ispositive

Element-wise positive test.

TF = ispositive(A)

Returns true for elements strictly greater than zero. Faster equivalent of A > 0.

ispositive([0 1 -1 2]) % [0 1 0 1]
  • isnonzero — Element-wise non-zero test.
  • iszero — Element-wise zero test.