isreal

Type: External

Group: matrix

Syntax

answer = isreal(matrix)

Description

Returns 1 if any of the elements of the supplied matrix are not zero.

Examples

isreal([0,2i]) = 0 isreal([11,0]) = 1 isreal([]) = 1

See Also

isnan, isimaginary