single
fi
オブジェクトの単精度浮動小数点実際値
構文
single(a)
説明
固定小数点数は以下のように表現することができます。
または、次も等価です。
single(a)
は fi
オブジェクトの実際値を単精度浮動小数点で返します。
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
使用に関するメモと制限:
自動化されたワークフローでは、固定小数点のデータ型をサポートしない関数を分離するために MATLAB® アルゴリズム内で明示的な double 型または single 型のキャストを使用しないでください。自動変換ツールはこれらのキャストをサポートしません。キャストを使用する代わりに、置換関数を指定してください。詳細は、関数の置換を参照してください。
バージョン履歴
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)