isreal

Purpose

True for matrix consisting of all real elements.

Synopsis

k = isreal(X)

Description

isreal(X) returns 1 if all elements of X are real numbers, and 0 if any element has a nonzero imaginary component.

(c) Copyright 1994 by The MathWorks, Inc.