iszero
Element-wise zero test.
Syntax
Section titled “Syntax”TF = iszero(A)Description
Section titled “Description”Returns a logical array marking elements equal to zero. Equivalent to A == 0 but faster (specialized kernel).
Example
Section titled “Example”iszero([0 1 0 -1]) % [1 0 1 0]See also
Section titled “See also”isnonzero— Element-wise non-zero test.ispositive— Element-wise positive test.