ヘルプ センターヘルプ センター
入力が単精度データ型かどうかを判別
tf = issingle(a)
tf = issingle(T)
例
tf = issingle(a) は fi オブジェクト a の DataType プロパティが single である場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。
a
fi
DataType
single
1
true
0
false
tf = issingle(T) は numerictype オブジェクト T の DataType プロパティが single である場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。
T
numerictype
すべて折りたたむ
fi オブジェクトを作成し、それが単精度データ型であるかどうかを判別します。
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 0
numerictype オブジェクトを作成し、それが単精度データ型であるかどうかを判別します。
T = numerictype('Single')
T = DataTypeMode: Single
tf = logical 1
入力 fi オブジェクト。スカラー、ベクトル、行列または多次元配列として指定します。
データ型: fi
入力 numerictype オブジェクト。スカラーとして指定します。
R2008a で導入
isboolean | isdouble | isfixed | isfloat | isscaleddouble | isscaledtype | isscalingbinarypoint | isscalingslopebias | isscalingunspecified
isboolean
isdouble
isfixed
isfloat
isscaleddouble
isscaledtype
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の 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