ヘルプ センターヘルプ センター
fi
Boolean
入力が 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