Fixed-Point Toolbox Tutorial (Japanese) demo files

by

 

"Fixed-Point Toolbox Tutorial (Japanese)" demo files. 「Fixed-Point Toolbox チュートリアル」の例題ファイルです。

set_property3.m
% IuWFNgvpeBݒpXNvg

% fiprefݒ
% f[^^Cv㏑ݒɖ߂
fipref('DataTypeOverride', 'ForceOff');

% XP[doublẽMOf[^œKXP[OlvZ
Ty   = cal_numerictype(y_fi_sd, true, 16);
Tacc = cal_numerictype(acc_fi_sd, true, 32);

% fimathݒ
% AL[^ɍ킹fimathݒύX
F = fimath('OverflowMode',          'saturate', ...
		   'RoundMode',             'floor', ...
		   'SumMode',               'SpecifyPrecision', ...
           'SumWordLength',         Tacc.WordLength, ...
           'SumFractionLength',     Tacc.FractionLength, ...
           'ProductMode',           'SpecifyPrecision', ...
           'ProductWordLength',     Tacc.WordLength, ...
           'ProductFractionLength', Tacc.FractionLength);

Contact us