Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

any (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

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