isnonzero
Element-wise non-zero test.
Syntax
Section titled “Syntax”TF = isnonzero(A)Description
Section titled “Description”Counterpart of iszero — true for elements not equal to zero.
Example
Section titled “Example”isnonzero([0 1 0 -1]) % [0 1 0 1]See also
Section titled “See also”iszero— Element-wise zero test.