Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

定点数学函数

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

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

函数

全部展开

数组创建

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

数组和矩阵操作

horzcatConcatenate multiple fi objects horizontally
sortSort elements of real-valued fi object in ascending or descending order
subsasgnSubscripted assignment
subsref下标引用
vertcatConcatenate fi object arrays vertically

基本数组和矩阵信息

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

数组和矩阵运算符

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

线性方程组求解器和矩阵分解

fixed.backwardSubstitute通过后代求解上三角方程组 (自 R2020b 起)
fixed.forwardSubstitute通过前代求解下三角方程组 (自 R2020b 起)
fixed.jacobiSVDFixed-point Jacobi singular value decomposition (自 R2023a 起)
fixed.qlessQRQ-less QR decomposition (自 R2020b 起)
fixed.qlessQRUpdateUpdate QR factorization (自 R2020b 起)
fixed.qrABCompute C = Q'B and upper-triangular factor R (自 R2020b 起)
fixed.qrMatrixSolveSolve system of linear equations Ax = B for x using QR decomposition (自 R2020b 起)
fixed.qlessQRMatrixSolveSolve system of linear equations (A'A)X = B for X using Q-less QR decomposition (自 R2020b 起)
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 表示的最小存储整数值
nextpow2Exponent of next higher power of 2 of fi object (自 R2020a 起)
pow2Efficient fixed-point multiplication by 2K
power定点按元素求幂
sqrtfi 对象的平方根
accumnegSubtract two fi objects or values
accumposAdd two fi objects or values
add使用 fimath 对象将两个 fi 对象相加
atan2Four-quadrant inverse tangent of fixed-point values
ceilDivRound the result of division toward positive infinity (自 R2021a 起)
convfi 对象的卷积和多项式乘法
cosCosine of fi object in radians
divide将两个 fi 对象相除
fixDivRound the result of division toward zero (自 R2021a 起)
floorDiv将除法结果向负无穷方向舍入 (自 R2021a 起)
mpy使用 fimath 对象将两个对象相乘
nearestDivRound the result of division toward the nearest integer (自 R2021a 起)
nnzfi 对象中的非零元素数 (自 R2020b 起)
normalizedReciprocalCompute normalized reciprocal (自 R2020a 起)
sin定点值的正弦
sqrtfi 对象的平方根
sub使用 fimath 对象对两个 fi 对象相减
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 对象将数字转换为二进制表示
num2hexConvert number to hexadecimal equivalent using quantizer object
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 对象的除后模数
modByConstantModulus after division by a constant denominator (自 R2021a 起)
errmean量化误差的均值
errpdfProbability density function of quantization error
errvar量化误差的方差
logreport量化报告
maxlogLog maximums
minlogLog minimums
noperationsNumber of quantization operations by quantizer object
noverflowsNumber of overflows
nunderflowsNumber of underflows
resetlogClear log for fi or quantizer object
mean定点数组的平均值或均值
median定点数组的中位数值