帮助中心帮助中心
fi
Boolean
确定输入是否为布尔值
tf = isboolean(a)
tf = isboolean(T)
示例
tf = isboolean(a) 在 fi 对象 a 的 DataType 属性为 Boolean 时返回 1 (true)。否则,返回 0 (false)。
a
DataType
1
true
0
false
tf = isboolean(T) 在 numerictype 对象 T 的 DataType 属性为 Boolean 时返回 1 (true)。否则,返回 0 (false)。
T
numerictype
全部折叠
创建一个 fi 对象,并确定其数据类型是否为 Boolean。
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 0
a = fi(pi,'DataType','Boolean')
a = 1 DataTypeMode: Boolean
tf = logical 1
创建一个 numerictype 对象,并确定其数据类型是否为 Boolean。
T = numerictype
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
T = numerictype('Boolean')
T = DataTypeMode: Boolean
输入 fi 对象,指定为标量、向量、矩阵或多维数组。
数据类型: fi
输入 numerictype 对象,指定为标量。
在 R2008a 中推出
isdouble | isfixed | isfloat | isscaleddouble | isscalingbinarypoint | isscalingslopebias | isscalingunspecified | issingle
isdouble
isfixed
isfloat
isscaleddouble
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