用于编程和数据类型的函数
用于按位运算、数据类型运算符和工具以及程序控制的函数
对 fi
对象执行按位操作,操作 fi
对象的数据类型,并使用支持定点数据类型的函数开发算法。
函数
按位运算
bitand | 两个 fi 对象的按位 AND |
bitandreduce | Reduce consecutive slice of bits to one bit by performing
bitwise AND operation |
bitcmp | fi 对象的按位补码 |
bitconcat | 串联 fi 对象的位 |
bitget | Get bits at certain positions |
bitor | 两个 fi 对象的按位 OR |
bitorreduce | Reduce consecutive slice of bits to one bit by performing
bitwise OR operation |
bitreplicate | Replicate and concatenate bits of fi object |
bitrol | Bitwise rotate left |
bitror | Bitwise rotate right |
bitset | Set bit at specific location |
bitshift | 将位移动指定位数 |
bitsliceget | Get consecutive slice of bits |
bitsll | 逻辑左移位 |
bitsra | 算术右移位 |
bitsrl | 逻辑右移位 |
bitxor | 两个 fi 对象的按位 XOR |
bitxorreduce | Reduce consecutive slice of bits to one bit by performing
bitwise exclusive OR operation |
getlsb | 最低有效位 |
getmsb | 最高有效位 |
数据类型运算符
数据类型工具
cast64BitFiToInt | Cast fi object types that can be exactly represented to a
64-bit integer data type (自 R2020a 起) |
cast64BitIntToFi | Cast 64-bit integer types to an equivalent fi object
type (自 R2020a 起) |
castFiToInt | Cast fi object to equivalent integer data type (自 R2020a 起) |
castFiToMATLAB | Cast fi object type to an equivalent built-in MATLAB data type (自 R2020a 起) |
castIntToFi | Cast an integer data type to equivalent fi type (自 R2020a 起) |
num2str | 将数值转换为字符数组 |
reinterpretcast | 转换定点或整数数据类型而不更改基础数据 |
rescale | Change scaling of fi object |
storedInteger | fi 对象的存储整数值 |
storedIntegerToDouble | Convert stored integer value of fi object to built-in double
value |
stripscaling | Stored integer of fi object |
数值范围
查询类型和值
fixed.extractNumericType | Extract numeric type from input (自 R2021a 起) |
isboolean | 确定输入是否为布尔值 |
isdouble | 确定输入是否为双精度数据类型 |
isfi | 确定变量是否为 fi 对象 |
isfimath | 确定变量是否为 fimath 对象 |
isfimathlocal | 确定 fi 对象是否具有局部 fimath |
isfipref | 确定输入是否为 fipref 对象 |
isfixed | 确定输入是否为定点数据类型 |
isnumerictype | 确定输入是否为 numerictype 对象 |
ispropequal | Determine whether properties of two fi objects are
equal |
isquantizer | 确定输入是否为 quantizer 对象 |
isscaleddouble | Determine whether input is scaled double data type |
isscaledtype | Determine whether input is fixed-point or scaled double data type |
isscalingbinarypoint | Determine whether input has binary point scaling |
isscalingslopebias | Determine whether input has nontrivial slope and bias scaling |
isscalingunspecified | Determine whether input has unspecified scaling |
issigned | 确定 fi 对象是否为有符号 |
issingle | 确定输入是否为单精度数据类型 |
isslopebiasscaled | Determine whether numerictype object has nontrivial slope and
bias scaling |
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)