This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Bitwise Operations

Bit manipulation and operations

Functions

bitandBitwise AND of two fi objects
bitorBitwise OR of two fi objects
bitxorBitwise exclusive OR of two fi objects
bitandreduceReduce consecutive slice of bits to one bit by performing bitwise AND operation
bitorreduceReduce consecutive slice of bits to one bit by performing bitwise OR operation
bitxorreduceReduce consecutive slice of bits to one bit by performing bitwise exclusive OR operation
bitrorBitwise rotate right
bitshiftShift bits specified number of places
bitrolBitwise rotate left
bitsllBit shift left logical
bitsraBit shift right arithmetic
bitsrlBit shift right logical
bitcmpBitwise complement of fi object
bitconcatConcatenate bits of fi objects
bitreplicateReplicate and concatenate bits of fi object
bitgetGet bits at certain positions
bitsetSet bits at certain positions
bitslicegetGet consecutive slice of bits
getlsbLeast significant bit
getmsbMost significant bit