Main Content
isreal
Determine whether array uses complex storage
Syntax
Description
Examples
Input Arguments
Tips
To check whether each element of an array
A
is real, useA == real(A)
.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
Version History
Introduced before R2006a