帮助中心帮助中心
fi
AND
两个 fi 对象的按位 AND
c = bitand(a,b)
示例
c = bitand(a,b) 以 fi 对象 c 形式返回 fi 对象 a 和 b 的按位 AND 运算结果。
c
a,b
a
b
与 a 和 b 相关联的 numerictype 属性必须相同。如果两个输入都有局部 fimath 对象,则 fimath 对象必须相同。如果 numerictype 有符号,则存储整数的位表示是 2 的补码表示。
numerictype
fimath
a 和 b 的维度必须相同,除非其中一个是标量。
bitand 仅支持具有定点数据类型的 fi 对象。
bitand
全部折叠
为逻辑 AND 运算创建真值表。
A = fi([0 1; 0 1]); B = fi([0 0; 1 1]); TTable = bitand(A, B)
TTable = 0 0 0 1 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 14
仅当两个按位输入均为 1 时,bitand 才返回 1。
1
输入值,指定为标量、向量、矩阵或多维数组。a 和 b 的维度必须相同,除非其中一个是标量。输入 a 和 b 必须为具有定点数据类型和相同 numerictype 属性的 fi 对象。如果两个输入都有局部 fimath 对象,则 fimath 对象必须相同。
数据类型: fi
使用说明和限制:
不支持斜率偏置定标的 fi 对象。
在 R2006a 之前推出
bitcmp | bitget | bitor | bitset | bitxor
bitcmp
bitget
bitor
bitset
bitxor
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office