nan (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Classes: constants and matrix

Requires: MathScript RT Module

Syntax

c = nan

c = nan(a)

c = nan(a, b)

Description

Generates a matrix of values that are not-a-number, or NaN, or indicates that a value is not-a-number. The IEEE standard for floating-point arithmetic defines NaN as the result of nonsensical operations.

Examples

Inputs

Name Description
a Specifies the number of rows in c. a is a positive integer.
b Specifies the number of columns in c. b is a positive integer.

Outputs

Name Description
c Returns an a-by-b matrix whose elements are all NaN. If you specify a but not b, c returns a square matrix of order a. If you do not specify an input, c returns a value of NaN.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes

Examples

C = nan(3, 5)

文章是否对您有帮助?

没有帮助