Example7.7: 2. Read Section 7.2.2 from the textbook and pay particular attention
ID: 1996662 • Letter: E
Question
Example7.7: 2. Read Section 7.2.2 from the textbook and pay particular attention to Example 7.7. We wish to design a generalized linear phase filter satisfying the specifications 0.95 IH(eia)I 1.05, 0 SIwl s 0.5m IH(ej")I 0.15, by applying a Kaiser window to the impulse response haln of the ideal low-pass filter with cut- off frequency we 0.55T. Find the value B and the window length M required to satisfy the specifications. Plot the corresponding Kaiser window and the impulse response of the designed low-pass filter. Plot the magnitude response 20 log10, H (ei")I of the designed filter in the range w E (0,T) with resolution 2m/1024 or higher.Explanation / Answer
given wp=0.5pi fp=wp/2pi=0.5pi/2pi=0.25 ws=pi fs=pi/2pi=0.5 %code fsamp = 8000; fcuts = [0.25 0.5];% passband and stopband freq mags = [0.95 0.15]; [n,Wn,beta,ftype] = kaiserord(fcuts,mags,fsamp);% finds the order, norm freq, beta hh = fir1(n,Wn,ftype,kaiser(n+1,beta),'noscale'); freqz(hh) [H,f] = freqz(hh,1,2*pi/1024,fsamp); plot(f,abs(H)) grid
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.