主要内容

定点数学函数

支持定点数据类型的 MATLAB® 函数

创建和操作定点矩阵和数组。使用支持定点数据类型的算术、线性代数、三角、统计和复数数学函数。

函数

全部展开

数组创建

colon, :创建向量、数组下标
eye创建具有定点属性的单位矩阵
ones用定点属性创建全一数组
zeros创建具有定点属性的全零数组

数组和矩阵操作

horzcat水平串联多个 fi 对象
sort按升序或降序对实数值 fi 对象的元素进行排序
subsasgnSubscripted assignment
subsref下标引用
vertcat垂直串联 fi 对象数组

基本数组和矩阵信息

isequivalentDetermine if two numerictype objects have equivalent properties
isfloat确定输入是否为浮点数据类型
maxfi 对象数组中的最大元素
minfi 对象数组中的最小元素
numelfi 数组中数据元素的数目

数组和矩阵运算符

ctransposefi 对象的复共轭转置
minusfi 对象之间的矩阵差
mpower定点矩阵幂 (^)
mrdivide矩阵右除
mtimesMatrix product of fi objects
plusMatrix sum of fi objects
qr正交三角分解
rdivide数组右除
shiftdataShift data to operate on specified dimension
sumfi 数组元素的总和
timesfi 对象的逐元素乘法
uminusfi 对象数组的元素求反
unshiftdataInverse of shiftdata

线性系统求解器和矩阵分解

fixed.backwardSubstitute通过后代求解上三角方程组
fixed.forwardSubstitute通过前代求解下三角方程组
fixed.jacobiSVDFixed-point Jacobi singular value decomposition (自 R2023a 起)
fixed.qlessQRQ-less QR decomposition
fixed.qlessQRUpdateUpdate QR factorization
fixed.qrABCompute C = Q'B and upper-triangular factor R
fixed.qrMatrixSolveSolve system of linear equations Ax = B for x using QR decomposition
fixed.qlessQRMatrixSolveSolve system of linear equations (A'A)X = B for X using Q-less QR decomposition
fixed.svdFixed-point Golub-Kahan-Reinsch singular value decomposition (自 R2022b 起)
svdFixed-point Golub-Kahan-Reinsch singular value decomposition (自 R2022b 起)

专用矩阵

toeplitzCreate Toeplitz matrix
cordicsigmoidCORDIC-based approximation of sigmoid activation (自 R2023b 起)
absAbsolute value of fi object
complex基于实部和虚部构造复数 fi 对象
conjfi 对象的复共轭
sign对数组执行符号函数(signum 函数)
epsfiquantizer 对象的量化相对精度
intmax可由 fi 对象的 numerictype 表示的最大存储正整数值
intmin可由 fi 对象的 numerictype 表示的最小存储整数值
nextpow2fi 对象的 2 的下一个更高次幂的指数
pow2乘以 2K 的高效定点乘法
power定点按元素求幂
sqrtfi 对象的平方根
accumnegSubtract two fi objects or values
accumpos将两个 fi 对象或值相加
add使用 fimath 对象将两个数组相加
atan2定点值的四象限反正切
ceilDiv将除法结果向正无穷方向舍入 (自 R2021a 起)
convfi 对象的卷积和多项式乘法
cosfi 对象的余弦值(以弧度为单位)
divide将两个 fi 对象相除
fixDiv将除法的结果向零方向舍入 (自 R2021a 起)
floorDiv将除法结果向负无穷方向舍入 (自 R2021a 起)
mpy使用 fimath 对象将两个数组相乘
nearestDiv将除法的结果向最接近的整数舍入 (自 R2021a 起)
nnzfi 对象中的非零元素数
normalizedReciprocalCompute normalized reciprocal
sin定点值的正弦
sqrtfi 对象的平方根
sub使用 fimath 对象将两个数组相减
binfi 对象的存储整数的无符号二进制表示
bin2num使用 quantizer 对象将 2 的二进制补码字符串转换为数字
decfi 对象的存储整数的无符号十进制表示
dec2baseConvert decimal integer to its base-n representation for fi objects (自 R2021b 起)
dec2binConvert decimal integer to its binary representation for fi objects (自 R2021b 起)
dec2hexConvert decimal integer to its hexadecimal representation for fi objects (自 R2021b 起)
hexfi 对象的存储整数的十六进制表示
hex2numConvert hexadecimal string to number using quantizer object
num2bin使用 quantizer 对象将数字转换为二进制表示
num2hex使用 quantizer 对象将数字转换为十六进制等效值
num2int使用 quantizer 对象将数字转换为有符号整数
octfi 对象的存储整数的八进制表示
sdecfi 对象的存储整数的有符号十进制表示
eqDetermine whether real-world values are equal
geDetermine whether real-world value of one array is greater than or equal to another
gtDetermine whether real-world value of one array is greater than another
leDetermine whether real-world value of one array is less than or equal to another
ltDetermine whether real-world value of one array is less than another
neDetermine whether real-world values of two arrays are not equal

舍入函数

ceil 朝正无穷方向舍入
convergent向最接近的整数舍入,同时将结值舍入到最接近的偶数
fix向零舍入
floor朝负无穷方向舍入
nearest向最邻近的整数舍入,同时将结值朝正无穷方向舍入
round使用 quantizer 对象将 fi 对象舍入到最接近的整数或舍入输入数据

模数和余数函数

modfi 对象的除后模数
modByConstant除以常量分母后的模数 (自 R2021a 起)
errmean量化误差的均值
errpdf量化误差的概率密度函数
errvar量化误差的方差
logreport量化报告
maxlog记录最大值
minlogLog minimums
noperationsNumber of quantization operations by quantizer object
noverflows溢出次数
nunderflows下溢次数
resetlog清除 fiquantizer 对象的日志
mean定点数组的平均值或均值
median定点数组的中位数值