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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

itand<br />

2bitand<br />

Purpose Bit-wise AND<br />

Syntax C = bitand(A,B)<br />

Description C = bitand(A,B) returns the bit-wise AND of two nonnegative integer<br />

arguments A and B. To ensure the operands are integers, use the ceil, fix,<br />

floor, and round functions.<br />

Examples The five-bit binary representations of the integers 13 and 27 are 01101 and<br />

11011, respectively. Performing a bit-wise AND on these numbers yields<br />

01001, or 9.<br />

2-160<br />

C = bitand(13,27)<br />

C =<br />

9<br />

See Also bitcmp, bitget, bitmax, bitor, bitset, bitshift, bitxor

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

Saved successfully!

Ooh no, something went wrong!