定点数学函数
支持定点数据类型的 MATLAB® 函数
创建和操作定点矩阵和数组。使用支持定点数据类型的算术、线性代数、三角、统计和复数数学函数。
函数
数组创建
数组和矩阵操作
horzcat | 水平串联多个 fi 对象 |
sort | 按升序或降序对实数值 fi 对象的元素进行排序 |
subsasgn | Subscripted assignment |
subsref | 下标引用 |
vertcat | 垂直串联 fi 对象数组 |
基本数组和矩阵信息
isequivalent | Determine if two numerictype objects
have equivalent properties |
isfloat | 确定输入是否为浮点数据类型 |
max | fi 对象数组中的最大元素 |
min | fi 对象数组中的最小元素 |
numel | fi 数组中数据元素的数目 |
数组和矩阵运算符
ctranspose | fi 对象的复共轭转置 |
minus | fi 对象之间的矩阵差 |
mpower | 定点矩阵幂 (^) |
mrdivide | 矩阵右除 |
mtimes | Matrix product of fi objects |
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 | 通过后代求解上三角方程组 |
fixed.forwardSubstitute | 通过前代求解下三角方程组 |
fixed.jacobiSVD | Fixed-point Jacobi singular value decomposition (自 R2023a 起) |
fixed.qlessQR | Q-less QR decomposition |
fixed.qlessQRUpdate | Update QR factorization |
fixed.qrAB | Compute C = Q'B and upper-triangular factor R |
fixed.qrMatrixSolve | Solve system of linear equations Ax = B for x using QR decomposition |
fixed.qlessQRMatrixSolve | Solve system of linear equations (A'A)X = B for X using Q-less QR decomposition |
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 | 将两个 fi 对象或值相加 |
add | 使用 fimath 对象将两个数组相加 |
atan2 | 定点值的四象限反正切 |
ceilDiv | 将除法结果向正无穷方向舍入 (自 R2021a 起) |
conv | fi 对象的卷积和多项式乘法 |
cos | fi 对象的余弦值(以弧度为单位) |
divide | 将两个 fi 对象相除 |
fixDiv | 将除法的结果向零方向舍入 (自 R2021a 起) |
floorDiv | 将除法结果向负无穷方向舍入 (自 R2021a 起) |
mpy | 使用 fimath 对象将两个数组相乘 |
nearestDiv | 将除法的结果向最接近的整数舍入 (自 R2021a 起) |
nnz | fi 对象中的非零元素数 |
normalizedReciprocal | Compute normalized reciprocal |
sin | 定点值的正弦 |
sqrt | fi 对象的平方根 |
sub | 使用 fimath 对象将两个数组相减 |
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 | 使用 quantizer 对象将数字转换为十六进制等效值 |
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 | 除以常量分母后的模数 (自 R2021a 起) |
errmean | 量化误差的均值 |
errpdf | 量化误差的概率密度函数 |
errvar | 量化误差的方差 |
logreport | 量化报告 |
maxlog | 记录最大值 |
minlog | Log minimums |
noperations | Number of quantization operations by quantizer
object |
noverflows | 溢出次数 |
nunderflows | 下溢次数 |
resetlog | 清除 fi 或 quantizer 对象的日志 |
mean | 定点数组的平均值或均值 |
median | 定点数组的中位数值 |
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)