MATLAB Function Reference | ![]() ![]() |
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
, bitget
, bitmax
, bitor
, bitset
, bitshift
, bitxor
![]() | bitand | bitget | ![]() |