[Top][All Lists]

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

Re: isnan() in an oct file

From: Jordi Gutiérrez Hermoso
Subject: Re: isnan() in an oct file
Date: Tue, 21 Apr 2015 10:37:20 -0400

On Thu, 2015-04-16 at 07:17 -0700, babelproofreader wrote:
> How does one check, in an oct file, that the result of some matrix
> multiplication produces real values in the resultant matrix
> and not NaN values,

Use the isnan() method of the array types or octave_value. It is
what the isnan function from the interpreter calls:

> and how would this be reported, e.g. line number of code, to
> terminal?

Use the error() function, e.g.

- Jordi G. H.

reply via email to

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