MATLAB コマンドベースの場合
Fixed-Point Designer の関数 "reinterpretcast" を使用することができます。
>> u=fi(7,0,3,0);
>> y=reinterpretcast(u,numerictype(1,3,2))
y =
-0.2500
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 3
FractionLength: 2
*関数 "reinterpretcast" は、コード生成(C,HDL) 対応
Simulink モデルの場合
Data Type Conversionブロックの”整数格納(SI)” を使用できます。
