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.

itor<br />

2bitor<br />

Purpose Bit-wise OR<br />

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

Description C = bitor(A,B) returns the bit-wise OR 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 OR on these numbers yields 11111,<br />

or 31.<br />

2-164<br />

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

C =<br />

31<br />

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

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

Saved successfully!

Ooh no, something went wrong!