Hi Everyone.....I am designing Moving Average Filter(MAV)...Is it possible to analysis MVA using FDATOOL?

2 views (last 30 days)
Hi...I am designing MAV(for DC removal-100Hz) filter and the m file code is below...
Fs=12e3; Ts=1/Fs; s=tf('s'); z=tf('z',Ts); Nfiltmedia=round((1/100)/Ts); Gfilt_media=minreal((1-z^-Nfiltmedia)/(Nfiltmedia)/(1-z^-1)); LPF_100=c2d(1/(1+s/(2*pi*100)),Ts); den_delay=[1,zeros(1,Nfiltmedia)]; figure(12); bode(Gfilt_media,LPF_100, 2*pi*logspace(0,log10(250),1e4)); grid on
Using above code I developed MAV.....and i would like to analysis in FDATOOL(using import coefficients from Matlab workspace)....even i realised Direct form II structure of order 119.....I used this structure(DFII) in simulink...the logic is ,after added this structure in simulink,it should work.....but I didnt get the same results? Any suggestion?Thanks in advance.

Answers (0)

Community Treasure Hunt

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

Start Hunting!