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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the boolean class.

Syntax

c = or(a, b)

Description

Determines whether at least one of the corresponding elements in the input matrices is non-zero. or(a, b) is equivalent to a|b.

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 at least one of the corresponding elements in a and b is 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 = or(A, B)


Resources


 

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