logical (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

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

Owning Class: boolean

Requires: MathScript RT Module

Syntax

c = logical(a)

Description

Converts numeric values to Boolean values.

Examples

Inputs

Name Description
a Specifies a numeric scalar, vector, or matrix.

Outputs

Name Description
c Returns a with equivalent Boolean values. LabVIEW converts non-zero elements to Boolean 1, or TRUE, and converts zero elements to Boolean 0, or FALSE. Complex numbers and NaN result in errors. c is a Boolean matrix.

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 = [0, 1, 1; 2, 0, 1; 5, 0, 89]
C = logical(A)

Related Topics

false
true

文章是否对您有帮助?

没有帮助