In this experiment we implemented FIR filter using Windowing method for LPF and BPF. In this method, the impulse response is multiplied to window function w(n) to get h(n) which after Z-transform results in the transfer function H(z). The various inputs for designing are given such as pass band and stop band attenuation, passband and stopband frequencies and sampling frequency. We have to select an appropriate window function w(n) wrt the inputted values.The types of window function are [1] Rectangular [2] Bartlett [3] Hanning [4] Hamming [5] Blackman. We select the window function if its stopband attenuation is more than that of the given filter. The length of the signal i.e. N should always be odd. We selected the Hamming window function and the order of filter came to be 10 and length was 11 for LPF and 14 and 15 for BPF respectively.
code:
Extremely clear and concise explanation!
ReplyDeleteso did you use all the windows?
ReplyDeleteNo, I used Hamming Window function for LPF and BPF,wrt to the given inputs.
ReplyDeleteHamming window function satisfied the conditions to be used in both.