ヘルプ センターヘルプ センター
変数 x のデータ型は、次のいずれかのコマンドを使用して確認できます。
x
コマンド
演算
whos x
x のデータ型を表示
xType = class(x);
x のデータ型を変数に代入
isnumeric(x)
x が数値型かどうかを判定
isa(x, 'integer') isa(x, 'uint64') isa(x, 'float') isa(x, 'double') isa(x, 'single')
x が指定の数値型かどうかを判定 (ここに示したのは、整数、符号なし 64 ビット整数、 任意の浮動小数点、倍精度、単精度の例です)
isreal(x)
x が実数か複素数かを判定
isnan(x)
x が非数 (NaN) かを判定
NaN
isinf(x)
x が無限大かを判定
isfinite(x)
x が有限かを判定
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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