MATLAB Function Reference
  Go to function:
    Search    Help Desk 
bitcmp    Examples   See Also

Complement bits

Syntax

Description

C = bitcmp(A,n) returns the bit-wise complement of A as an n-bit floating-point integer (flint).

Example

With eight-bit arithmetic, the ones' complement of 01100011 (99, decimal) is 10011100 (156, decimal).

See Also

bitand      Bit-wise AND

bitget      Get bit

bitmax      Maximum floating-point integer

bitor       Bit-wise OR

bitset      Set bit

bitshift    Bit-wise shift

bitxor      Bit-wise XOR



[ Previous | Help Desk | Next ]