23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2bitcmp<br />

Purpose Complement bits<br />

Syntax C = bitcmp(A,n)<br />

Description C = bitcmp(A,n) returns the bit-wise complement of A as an n-bit<br />

floating-point integer (flint).<br />

Example With eight-bit arithmetic, the ones’ complement of 01100011 (99, decimal) is<br />

10011100 (156, decimal).<br />

C = bitcmp(99,8)<br />

C =<br />

156<br />

See Also bitand, bitget, bitmax, bitor, bitset, bitshift, bitxor<br />

bitcmp<br />

2-161

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!