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.

2bitxor<br />

Purpose Bit-wise XOR<br />

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

bitxor<br />

Description C = bitxor(A,B) returns the bit-wise XOR of the two arguments A and B. Both<br />

A and B must be integers. You can ensure this by using the ceil, fix, floor,<br />

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 XOR on these numbers yields 10110,<br />

or 22.<br />

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

C =<br />

22<br />

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

2-167

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

Saved successfully!

Ooh no, something went wrong!