Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

any (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: boolean

Requires: MathScript RT Module

Syntax

status = any(a)

status = any(a, dim)

Description

Determines whether any non-zero input element exists. any is equivalent to not(all(not(.))).

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix of Boolean values.
dim Specifies the dimension along which LabVIEW determines whether any input elements are non-zero. dim is an integer that accepts the following values.

1 (default) Works column-wise and returns a row vector containing one Boolean element for each column of a.
2 Works row-wise and returns a column vector containing one Boolean element for each row of a.

Outputs

Name Description
status Returns 0 if a contains no non-zero elements. Otherwise, this function returns 1. status 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 = [0, 4; 9, 6]
STATUS = any(A)

Related Topics

all


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit