Fixed-Point Toolbox Tutorial (Japanese) demo files

by

 

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

run_myfilter_fi_sd.m
% myfiltervZʕ\pXNvgiŒ菬_j
% fiIuWFNgɑ΂ăXP[doubleKpmyfilteřvZs

% ͐MtB^WfiIuWFNg쐬
% numerictypeݒ	F LA꒷16rbgA15rbgiX[v2^-15j
% fimathݒ		F AL[^ɍ킹ݒ
u_fi   = fi(u, true, 16, 15, F);
num_fi = fi(num, true, 16, 15, F);
den_fi = fi(den, true, 16, 15, F);

% myfilteřvZiŒ菬_j
% XP[doubleKp߁Aۂ̌vZdoubleōs
[y_fi_sd, acc_fi_sd] = myfilter_fi(num_fi, den_fi, u_fi, Ty, Tacc, true);

% vZʂ̃vbg
plot_myfilter(f, u, H, y_dbl, y_fi_sd)

Contact us