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

bitcmp (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 = bitcmp(a, b)

Description

Computes the bitwise complement of the input elements. For example, if a = 9 (1001), bitcmp(a, 8) = 246 (11110110).

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 the number of bits you want in c. b is a positive integer.

Outputs

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

Examples

A = [134, 45, 232]
C = bitcmp(A, 8)

Related Topics

bitand
bitget
bitmax
bitor
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