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


status = any(a)

status = any(a, dim)


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



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.


Name Description
status Returns 0 if a contains no non-zero elements. Otherwise, this function returns 1. status is a Boolean.


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


A = [0, 4; 9, 6]
STATUS = any(A)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful