is_equal (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

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

Owning Class: comparison

Requires: MathScript RT Module

Syntax

c = is_equal(a, b, ...)

Legacy Name: isequal

Description

Determines whether two or more matrices contain the same numerical content. The data types do not have to be the same. is_equal does not consider values of NaN to be equal to each other. You can specify an unlimited number of inputs. All inputs must have the same size.

Examples

Inputs

Name Description
a Specifies the first scalar, vector, or matrix of double-precision, floating-point or complex double-precision, floating-point numbers.
b Specifies the second scalar, vector, or matrix of double-precision, floating-point or complex double-precision, floating-point numbers.

Outputs

Name Description
c Returns 1 if a and b contain the same numerical content. Otherwise, this function returns 0. c is a Boolean.

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

A = [1, 2, 3; nan, inf, 4]
B = A
C = is_equal(A, B)

Related Topics

is_equalnan

文章是否对您有帮助?

没有帮助