定点数学函数
支持定点数据类型的 MATLAB® 函数
创建和操作定点矩阵和数组。使用支持定点数据类型的算术、线性代数、三角、统计和复数数学函数。
函数
向量和矩阵运算
数组创建
数组和矩阵操作
horzcat | 水平串联多个 fi 对象 |
sort | Sort elements of real-valued fi object in ascending or descending
order |
subsasgn | Subscripted assignment |
subsref | 下标引用 |
vertcat | Concatenate fi object arrays vertically |
基本数组和矩阵信息
isequivalent | Determine if two numerictype objects
have equivalent properties |
isfloat | 确定输入是否为浮点数据类型 |
max | fi 对象数组中的最大元素 |
min | fi 对象数组中的最小元素 |
numel | fi 数组中数据元素的数目 |
数组和矩阵运算符
ctranspose | fi 对象的复共轭转置 |
minus | fi 对象之间的矩阵差 |
mpower | Fixed-point matrix power (^) |
mrdivide | 矩阵右除 |
mtimes | fi 对象的矩阵乘积 |
plus | Matrix sum of fi objects |
qr | 正交三角分解 |
rdivide | 数组右除 |
shiftdata | Shift data to operate on specified dimension |
sum | fi 数组元素的总和 |
times | fi 对象的逐元素乘法 |
uminus | 对 fi 对象数组的元素求反 |
unshiftdata | Inverse of shiftdata |
线性方程组求解器和矩阵分解
fixed.backwardSubstitute | 通过后代求解上三角方程组 (自 R2020b 起) |
fixed.forwardSubstitute | 通过前代求解下三角方程组 (自 R2020b 起) |
fixed.jacobiSVD | Fixed-point Jacobi singular value decomposition (自 R2023a 起) |
fixed.qlessQR | Q-less QR decomposition (自 R2020b 起) |
fixed.qlessQRUpdate | Update QR factorization (自 R2020b 起) |
fixed.qrAB | Compute C = Q'B and upper-triangular factor R (自 R2020b 起) |
fixed.qrMatrixSolve | Solve system of linear equations Ax = B for x using QR decomposition (自 R2020b 起) |
fixed.qlessQRMatrixSolve | Solve system of linear equations (A'A)X = B for X using Q-less QR decomposition (自 R2020b 起) |
fixed.svd | Fixed-point Golub-Kahan-Reinsch singular value decomposition (自 R2022b 起) |
svd | Fixed-point Golub-Kahan-Reinsch singular value decomposition (自 R2022b 起) |
专用矩阵
toeplitz | Create Toeplitz matrix |
激活
cordicsigmoid | CORDIC-based approximation of sigmoid activation (自 R2023b 起) |
常量
指数
数学运算
accumneg | Subtract two fi objects or values |
accumpos | Add two fi objects or values |
add | Add two arrays using fimath object |
atan2 | Four-quadrant inverse tangent of fixed-point values |
ceilDiv | 将除法结果向正无穷方向舍入 (自 R2021a 起) |
conv | fi 对象的卷积和多项式乘法 |
cos | fi 对象的余弦值(以弧度为单位) |
divide | 将两个 fi 对象相除 |
fixDiv | 将除法的结果向零方向舍入 (自 R2021a 起) |
floorDiv | 将除法结果向负无穷方向舍入 (自 R2021a 起) |
mpy | Multiply two arrays using fimath object |
nearestDiv | 将除法的结果向最接近的整数舍入 (自 R2021a 起) |
nnz | fi 对象中的非零元素数 (自 R2020b 起) |
normalizedReciprocal | Compute normalized reciprocal (自 R2020a 起) |
sin | 定点值的正弦 |
sqrt | fi 对象的平方根 |
sub | Subtract two arrays using fimath object |
基数转换
bin | fi 对象的存储整数的无符号二进制表示 |
bin2num | 使用 quantizer 对象将 2 的二进制补码字符串转换为数字 |
dec | fi 对象的存储整数的无符号十进制表示 |
dec2base | Convert decimal integer to its base-n representation for
fi objects (自 R2021b 起) |
dec2bin | Convert decimal integer to its binary representation for fi
objects (自 R2021b 起) |
dec2hex | Convert decimal integer to its hexadecimal representation for fi
objects (自 R2021b 起) |
hex | fi 对象的存储整数的十六进制表示 |
hex2num | Convert hexadecimal string to number using quantizer
object |
num2bin | 使用 quantizer 对象将数字转换为二进制表示 |
num2hex | Convert number to hexadecimal equivalent using quantizer
object |
num2int | 使用 quantizer 对象将数字转换为有符号整数 |
oct | fi 对象的存储整数的八进制表示 |
sdec | fi 对象的存储整数的有符号十进制表示 |
关系运算符
eq | Determine whether real-world values are equal |
ge | Determine whether real-world value of one array is greater than or equal to another |
gt | Determine whether real-world value of one array is greater than another |
le | Determine whether real-world value of one array is less than or equal to another |
lt | Determine whether real-world value of one array is less than another |
ne | Determine whether real-world values of two arrays are not equal |
舍入和余数
舍入函数
ceil | 朝正无穷方向舍入 |
convergent | 向最接近的整数舍入,同时将结值舍入到最接近的偶数 |
fix | 向零舍入 |
floor | 朝负无穷方向舍入 |
nearest | 向最邻近的整数舍入,同时将结值朝正无穷方向舍入 |
round | 使用 quantizer 对象将 fi 对象舍入到最接近的整数或舍入输入数据 |
模数和余数函数
mod | fi 对象的除后模数 |
modByConstant | Modulus after division by a constant denominator (自 R2021a 起) |
统计量
errmean | 量化误差的均值 |
errpdf | Probability density function of quantization error |
errvar | 量化误差的方差 |
logreport | 量化报告 |
maxlog | Log maximums |
minlog | Log minimums |
noperations | Number of quantization operations by quantizer
object |
noverflows | Number of overflows |
nunderflows | Number of underflows |
resetlog | Clear log for fi or quantizer object |
mean | 定点数组的平均值或均值 |
median | 定点数组的中位数值 |
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)