int
fi オブジェクトの格納整数値の取得
説明
例
fi オブジェクトの格納整数値の取得
fi
オブジェクトを既定の設定で作成します。関数 int
を使用して格納整数値を取得します。入力では既定の 16 ビットの語長が使用されているため、出力は int16
です。
a = fi(pi); b = int(a)
b = int16
25736
20 ビットの語長を使用する fi
オブジェクトを作成し、fi
オブジェクトの格納整数値を取得します。
a = fi(pi,1,20); b = int(a)
b = int32
411775
出力は、大きい入力語長を格納する int32
になります。
入力引数
a
— 固定小数点数値オブジェクト
スカラー | ベクトル | 行列 | 多次元配列
格納整数値の取得元となる固定小数点数値オブジェクト。入力の語長によって、出力のデータ型が決まります。
データ型: fi
複素数のサポート: あり
出力引数
i
— 格納整数値
スカラー | ベクトル | 行列 | 多次元配列
入力 fi
オブジェクトの格納整数値。組み込みの整数データ型の 1 つとして返されます。入力の語長によって、出力のデータ型が決まります。出力の次元は入力と同じになります。
バージョン履歴
R2006a で導入
MATLAB コマンド
次の 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)