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

and (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

c = and(a, b)

Description

Determines whether corresponding elements of two inputs are non-zero.

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix.
b Specifies a scalar, vector, or matrix. b must be the same size as a.

Outputs

Name Description
c Returns a matrix of Boolean values. An element in c is 1 if corresponding elements of a and b are non-zero. Otherwise, the element is 0. c is a matrix of the same size as a.

Examples

A = [1, 0]
B = [1, 1]
C = and(A, B)


Resources


 

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