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

all (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 = all(a)

Description

Determines whether all input elements are non-zero.

Examples

Inputs

Name Description
a Specifies a matrix.

Outputs

Name Description
status Returns 0 if a contains an element equal to zero. Otherwise, status returns 1. status is a Boolean. If a is a matrix, all works column-wise and returns a row vector containing one Boolean element for each column of a.

Examples

A = [-2, -1, 1, 2]
STATUS = all(A)

Related Topics

any


Resources


 

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