[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: missing MatLab function ISREAL

From: Daniel Heiserer
Subject: Re: missing MatLab function ISREAL
Date: Thu, 15 Jul 1999 18:09:43 +0200

address@hidden wrote:
> MatLab function isreal(), is missing in octave. Can somebody send me
> the
> code.

Soemthing inefficent, but:

function bool=isreal(a)
if real(a)==a

 ISREAL True for real array.
    ISREAL(X) returns 1 if all elements in X have zero
    imaginary part and 0 otherwise.
    ~ISREAL(X) detects complex arrays (i.e., arrays that have
    a non-zero real part).
    See also REAL, IMAG, I, J.

Mit freundlichen Gruessen
                                 Daniel Heiserer
Dipl.-Phys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen
Abteilung EK-20
Tel.: 089-382-21187, Fax.: 089-382-42820

Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see
Instructions for unsubscribing:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]