isreal
Determine whether array is real
Syntax
tf = isreal(A)
Description
Examples
Input Arguments
Tips
isreal(complex(A))
always returnsfalse
, even when the imaginary part is all zeros.~isreal(x)
detects arrays that have an imaginary part, even if it is all zeros.
Extended Capabilities
Introduced before R2006a
Was this topic helpful?