[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
bool=1;
else
bool=0;
end
#+++++++++++++++++++++++++++++++++++
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
mailto:address@hidden
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------