Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Determine whether array is real

`tf = isreal(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.