iscomplex
Element-wise complex-type test.
Syntax
Section titled “Syntax”TF = iscomplex(A)Description
Section titled “Description”Returns true for elements with a non-zero imaginary part. Counterpart of isreal.
Example
Section titled “Example”iscomplex([1 2+1i 3]) % [0 1 0]