help-octave
[Top][All Lists]
Advanced

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

Re: hasinfNaN function


From: Oliver Heimlich
Subject: Re: hasinfNaN function
Date: Thu, 21 Jan 2016 07:26:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

On 21.01.2016 05:39, Terry Duell wrote:
> Hello All,
> I am trying to work with some public domain matlab code, but fall foul
> of a missing function, 'hasinfNaN'.
> At first I assumed it was a standard matlab function, but references
> only turn up in a few sites that are unrelated to mathworks.
> Has anyone seen this function, or aware of a description of it?
> I am guessing that it checks for inf or NaN values in any matrix passed
> to it, but it may be more than that.
> 
> Cheres,

I haven't seen an implementation yet, but I'd say that you can replace
it with:
        not (isfinite (x))

When working with matrices you could use
        any (vec (not (isfinite (x)))

Best regards
Oliver



reply via email to

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