| MATLAB Function Reference | Search  Help Desk |
| bitcmp | Examples See Also |
Syntax
C = bitcmp(A,n)
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).C = bitcmp(99,8) C = 156
See Also
bitand, bitget, bitmax, bitor, bitset, bitshift, bitxor