フィルターのクリア

How quantization is impletemented in matlab ( by quantization i mean either the conversion from floating point format to fixed point or the conversion from fixedpoint q-format to an other fixed point format)

2 ビュー (過去 30 日間)
Is there a function floating To fixed point conversion in matlab and how it works ?

回答 (1 件)

Andy Bartlett
Andy Bartlett 2022 年 8 月 2 日
編集済み: Andy Bartlett 2022 年 8 月 2 日
Yes, Fixed-Point Designer product makes it easy to handle fixed-point in MATLAB and Simulink.
will make it easy to handle fixed-point types.
Here is a MATLAB example of converting to fixed-point and then back to double precision floating.
format long g
vOriginal = pi
vOriginal =
3.14159265358979
vFi = fi(vOriginal,1,16,8)
vFi =
3.140625 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 8
vRoundTrip = double(vFi)
vRoundTrip =
3.140625

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by