You are on page 1of 1

FIR and IIR Filter Design

1. Investigate the following windows both in time domain,w(n) 0 n M 1, and in the


frequency domain, W () 0 : rectangular, bartlett, hamming, hanning and blackman.
Plot the magnitude |W ()| in decibel (dB). Investigate the width of the mainlobe and the
magnitude of the first sidelob compared to the magnitude of the mainlob (0-dB level) for
different lengths of the window w(n) (let M = 51, 71 and 91).
2. Design a digital FIR lowpass filter with the window design method by using fir1. Use a
rectangular window and the filter length M = 41. Note, the filter order N is given by
N = M 1. The cut-off frequency, or the passband edge, is p = 4 . Plot the magnitude and the
phase functions of the filter. Investigate the attenuation obtained at p . Plot the impulse
response h(n) and plot the zeros and poles (impz, zplane). Change p = 2 and repeat the same
problem.
3. Design a digital FIR lowpass filter by using fir1. Use a rectangular window, p = 4 and the
filter length M = 51, 71 and 91. Investigate the width of the transition band versus the filter
length. Also investigate the magnitude of the first sidelobe (the minimum stopband attenuation)
versus the filter length.
4. Design a digital FIR lowpass filter with the following specification: passband frequency p = 5 ,
stopband frequency p = 0.3, passband ripple 1 = 0.25 dB and stopband attenuation 2 = 50
dB. Choose an appropriate window function that fulfil the filter specification. Use a filter with
as low filter length as possible. Plot the magnitude and the phase functions of the designed
filter. Determine the zeros and poles and plot them.
5. A digital signal x(n) contains a sinusoid of frequency 2 and a Gaussian noise w(n) of zero mean
and unit variance:

x(n) = 2cos( n) + w(n)


2
Filter out (or attenuate) the noise component using a 50th-order causal and linearphase FIR
filter.
Generate 200 samples of the sequence x(n) and process through the designed filter to obtain the
output signal y(n). Plot the input signal x(n) and the output signal y(n) for 100 < n < 200 and
comment on your results.
6. Determine H(s) for a Butterworth filter satisfying the following constraints

0.5 |H()| 1 0 2
|H()| 0.2 3

4
Find out H(z) by using the following methods. a)Bilinear transformation (Let T = 1 sec) .
b) Approximation of Derivatives .
7. Convert LPF H(s) to high pass filter with cutoff frequency c =
in above question (6) .

3
.
4

Where H(s) is calculated

8. Redraw the given decimator below in two stages and explain with suitable equations.
x(n)

H(z)

v(n)

D(= 10)

y(n)

The due date is Monday, November 3, before the class starts.

You might also like