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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the bitwise class.

Syntax

c = bitor(a, b)

Description

Computes the bitwise or of corresponding elements of two input matrices. For example, if a = 3 (011) and b = 9 (1001), bitor(a, b) = bitor(3, 9) = 11 (1011).

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix of positive integers. All elements of a must be less than bitmax.
b Specifies a scalar, vector, or matrix of positive integers. b must be the same size as a. All elements of b must be less than bitmax.

Outputs

Name Description
c Returns the bitwise or of a and b. c is a matrix of the same size as a and b.

Examples

A = [134, 45, 232]
B = [453, 32, 134]
C = bitor(A, B)

Related Topics

bitand
bitcmp
bitget
bitmax
bitset
bitshift
bitxor


Resources


 

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