このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
fixed.extractNumericType
説明
例
数値型を入力数値から抽出します。
T = fixed.extractNumericType(pi)
T = DataTypeMode: Double
T = fixed.extractNumericType(int8(0))
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 8 FractionLength: 0
T = fixed.extractNumericType(fi(pi,1,24,12))
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 24 FractionLength: 12
T = fixed.extractNumericType(half(pi))
T = DataTypeMode: Half
数値型を数値型指定オブジェクトから抽出します。
T = fixed.extractNumericType(numerictype(1,32,16))
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 32 FractionLength: 16
T = fixed.extractNumericType(fixdt(0,18,0))
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 18 FractionLength: 0
数値型をデータ型名の string から抽出します。
T = fixed.extractNumericType('int8')
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 8 FractionLength: 0
T = fixed.extractNumericType('sfix16_En3')
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 3
数値型をコンストラクターの string から抽出します。
T = fixed.extractNumericType('numerictype(1,33,55)')
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 33 FractionLength: 55
T = fixed.extractNumericType('fixdt(0,77,22)')
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 77 FractionLength: 22
入力引数
入力。スカラーとして指定します。
次の入力型がサポートされます。
数値 —
half
、single
、double
、int8
、int16
、int32
、int64
、uint8
、uint16
、uint32
、uint64
、logical
、fi
数値型指定オブジェクト —
embedded.numerictype
オブジェクト、Simulink.NumericType
オブジェクトMATLAB® データ型名の string —
'half'
、'single'
、'double'
、'int8'
、'int16'
、'int32'
、'int64'
、'uint8'
、'uint16'
、'uint32'
、'uint64'
、'logical'
Simulink® データ型名の string (エイリアスではない) —
'bool'
、'sfix16_En3'
など数値型オブジェクトとして評価されるコンストラクターの string —
'numerictype(1,33,55)'
、'fixdt(0,77,22)'
など
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| logical
| fi
複素数のサポート: あり
出力引数
入力の数値型。embedded.numerictype
オブジェクトとして返されます。
バージョン履歴
R2021a で導入
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)