Fixed-Point Toolbox Tutorial (Japanese) demo files

by

 

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

set_property1.m
% IuWFNgvpeBݒpXNvg

% fiprefݒ̃ZbgMO[hJn
reset(fipref);
fipref('LoggingMode', 'on');

% numerictypeݒ	F LA꒷16rbgA15rbgiX[v2^-15j
Ty   = numerictype(true, 16, 15);
Tacc = numerictype(true, 16, 15);

% fimathݒ
F = fimath('OverflowMode',          'saturate', ...
		   'RoundMode',             'floor', ...
		   'SumMode',               'SpecifyPrecision', ...
           'SumWordLength',         Tacc.WordLength, ...
           'SumFractionLength',     Tacc.FractionLength, ...
           'ProductMode',           'SpecifyPrecision', ...
           'ProductWordLength',     Tacc.WordLength, ...
           'ProductFractionLength', Tacc.FractionLength);

Contact us