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

any (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Member of the boolean class.

Syntax

status = any(a)

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.

Outputs

Name Description
status Returns 0 if a contains no non-zero elements. Otherwise, status returns 1. status is a Boolean. If a is a matrix, any works column-wise and returns a row vector containing one Boolean element for each column of a.

Examples

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

Related Topics

all


Resources


 

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