ayman_aldabbagh
Newbie level 2
A linear phase FIR bandpass filter is required to satisfy the following
specifications:
Passband=8-12kHz
Stopband ripple=0.001
Passband ripple=0.01
Transition width=3kHz
Sampling frequency=48kHz
a) Calculate the number of filter coefficients for each of the following cases:
i) Using the Hamming window,
ii) Using the Hanning window,
iii) Using the Kaiser window.
b) Calculate the coefficients and magnitude frequency-response of the filter with
the help of MATLAB for each window function in (a). {Hint: You should
write an m-file for each case}
c) Plot the magnitude-frequency response obtained in (b) for each window
function.
d) Test your filter design by applying a sinusoidal input x with the following
frequencies:
i) 2kHz
ii) 10kHz
iii) 20kHz
In this part, you are required to modify the MATLAB m-file you have written
for parts (b) and (c) such that it displays the output signal y. That is, for each
input signal, your program should plot the corresponding output signal y.
Finally, compare the three cases.
specifications:
Passband=8-12kHz
Stopband ripple=0.001
Passband ripple=0.01
Transition width=3kHz
Sampling frequency=48kHz
a) Calculate the number of filter coefficients for each of the following cases:
i) Using the Hamming window,
ii) Using the Hanning window,
iii) Using the Kaiser window.
b) Calculate the coefficients and magnitude frequency-response of the filter with
the help of MATLAB for each window function in (a). {Hint: You should
write an m-file for each case}
c) Plot the magnitude-frequency response obtained in (b) for each window
function.
d) Test your filter design by applying a sinusoidal input x with the following
frequencies:
i) 2kHz
ii) 10kHz
iii) 20kHz
In this part, you are required to modify the MATLAB m-file you have written
for parts (b) and (c) such that it displays the output signal y. That is, for each
input signal, your program should plot the corresponding output signal y.
Finally, compare the three cases.