在matlab中如何进行位运算
展开全部
>> help bitxor
BITXOR Bit-wise XOR.
C = BITXOR(A,B) returns the bitwise XOR of arguments A and B,
where A and B are unsigned integers or arrays of unsigned integers.
Example:
Create a truth table:
A = uint8([0 1; 0 1])
B = uint8([0 0; 1 1])
TT = bitxor(A,B)
See also bitor, bitand, bitcmp, bitshift, bitset, bitget, intmax.
BITXOR Bit-wise XOR.
C = BITXOR(A,B) returns the bitwise XOR of arguments A and B,
where A and B are unsigned integers or arrays of unsigned integers.
Example:
Create a truth table:
A = uint8([0 1; 0 1])
B = uint8([0 0; 1 1])
TT = bitxor(A,B)
See also bitor, bitand, bitcmp, bitshift, bitset, bitget, intmax.
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询