matlab mxisnan函数语法

发表matlab mxisnan函数相关文章
一句话说明: Determine whether input is NaN (Not-a-Number)

mxIsNaN (C and Fortran)

Determine whether input is NaN (Not-a-Number)

C Syntax

#include "matrix.h"
bool mxIsNaN(double value);

Fortran Syntax

integer*4 mxIsNaN(value)
real*8 value

Arguments

value

Double-precision, floating-point number you are testing

Returns

Logical 1 (true) if value is NaN (Not-a-Number), and logical 0 (false) otherwise.

Description

Call mxIsNaN to determine whether value is NaN. NaN is the IEEE® arithmetic representation for Not-a-Number. A NaN is obtained as a result of mathematically undefined operations such as

  • 0.0/0.0

  • Inf-Inf

The system understands a family of bit patterns as representing NaN. In other words, NaN is not a single value; rather, it is a family of numbers that MATLAB® software (and other IEEE-compliant applications) uses to represent an error condition or missing data.

Examples

See the following examples in matlabroot/extern/examples/mx.

See the following examples in matlabroot/extern/examples/refbook.

See Also

mxIsFinite, mxIsInf

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/mxisnan

与matlab mxisnan用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1