帮助中心帮助中心
确定输入是否为定点数据类型
tf = isfixed(a)
tf = isfixed(T)
tf = isfixed(q)
示例
tf = isfixed(a) 在 fi 对象 a 的 DataType 属性为 Fixed 时返回 1 (true)。否则,返回 0 (false)。
a
fi
DataType
Fixed
1
true
0
false
tf = isfixed(T) 在 numerictype 对象 T 的 DataType 属性为 Fixed 时返回 1。否则,返回 0 (false)。
T
numerictype
当 q 为定点 quantizer 对象时,tf = isfixed(q) 返回 1。否则,返回 0 (false)。
q
quantizer
全部折叠
创建一个 fi 对象,并确定它是否为定点数据类型。
a = fi([pi pi/2])
a = 3.1416 1.5708 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 1
创建一个 numerictype 对象,并确定它是否为定点数据类型。
T = numerictype('Double')
T = DataTypeMode: Double
tf = logical 0
创建一个 quantizer 对象,并确定它是否为定点数据类型。
q = quantizer('mode','single')
q = DataMode = single Format = [32 8]
输入 fi 对象,指定为标量、向量、矩阵或多维数组。
数据类型: fi
输入 numerictype 对象,指定为标量。
输入 quantizer 对象,指定为标量。
在 R2008a 中推出
isboolean | isdouble | isfloat | isscaleddouble | isscaledtype | isscalingbinarypoint | isscalingslopebias | isscalingunspecified | issingle
isboolean
isdouble
isfloat
isscaleddouble
isscaledtype
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
issingle
您点击的链接对应于以下 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office