Skip to content

isreal

Checking if an array is real

isreal(A)

  • It returns logical 1 if all elements in A have zero imaginary parts, and logical 0 if at least one of them has non-zero imaginary part.