isreal
Determine whether array uses complex storage
Syntax
Description
Examples
Input Arguments
Tips
- To check whether each element of an array - Ais real, use- A == real(A).
- isreal(complex(A))always returns- false, 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