Docsity

Laboratory Exercise 6: Digital Filter Design, Exercises of Digital Signal Processing

Toggle sidebar
bg1
1
Name:
Laboratory Exercise 6
DIGITAL FILTER DESIGN
6.1 DESIGN OF IIR FILTERS
Project 6.1 Estimation of IIR Filter Order
Answers:
Q6.1 The normalized passband edge angular frequency Wp is -
The normalized stopband edge angular frequency Ws is -
The desired passband ripple Rp is -
The desired stopband ripple Rs is -
(1) Using these values and buttord we get the lowest order for a Butterworth lowpass filter to be -
The corresponding normalized passband edge frequency Wn is -
(2) Using these values and cheb1ord we get the lowest order for a Type 1 Chebyshev lowpass filter to be -
The corresponding normalized passband edge frequency Wn is -
(3) Using these values and cheb2ord we get the lowest order for a Type 2 Chebyshev lowpass filter to be -
The corresponding normalized passband edge frequency Wn is -
(4) Using these values and ellipord we get the lowest order for an elliptic lowpass filter to be -
From the above results we observe that the ___________ filter has the lowest order meeting the specifications.
Q6.2 The normalized passband edge angular frequency Wp is -
The normalized stopband edge angular frequency Ws is -
The desired passband ripple Rp is -
The desired stopband ripple Rs is -
(1) Using these values and buttord we get the lowest order for a Butterworth highpass filter to be -
The corresponding normalized passband edge frequency Wn is -
(2) Using these values and cheb1ord we get the lowest order for a Type 1 Chebyshev highpass filter to be -
docsity.com
pf3
pf4
pf5
pf8

Partial preview of the text

Download Laboratory Exercise 6: Digital Filter Design and more Exercises Digital Signal Processing in PDF only on Docsity!

Name:

Laboratory Exercise 6

DIGITAL FILTER DESIGN

6.1 DESIGN OF IIR FILTERS

Project 6.1 Estimation of IIR Filter Order

Answers:

Q6.1 The normalized passband edge angular frequency Wp is -

The normalized stopband edge angular frequency Ws is -

The desired passband ripple Rp is -

The desired stopband ripple Rs is -

(1) Using these values and buttord we get the lowest order for a Butterworth lowpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(2) Using these values and cheb1ord we get the lowest order for a Type 1 Chebyshev lowpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(3) Using these values and cheb2ord we get the lowest order for a Type 2 Chebyshev lowpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(4) Using these values and ellipord we get the lowest order for an elliptic lowpass filter to be -

From the above results we observe that the ___________ filter has the lowest order meeting the specifications.

Q6.2 The normalized passband edge angular frequency Wp is -

The normalized stopband edge angular frequency Ws is -

The desired passband ripple Rp is -

The desired stopband ripple Rs is -

(1) Using these values and buttord we get the lowest order for a Butterworth highpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(2) Using these values and cheb1ord we get the lowest order for a Type 1 Chebyshev highpass filter to be -

docsity.com

The corresponding normalized passband edge frequency Wn is -

(3) Using these values and cheb2ord we get the lowest order for a Type 2 Chebyshev highpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(4) Using these values and ellipord we get the lowest order for an elliptic highpass filter to be -

From the above results we observe that the ___________ filter has the lowest order meeting the specifications.

Q6.3 The normalized passband edge angular frequency Wp is -

The normalized stopband edge angular frequency Ws is -

The desired passband ripple Rp is -

The desired stopband ripple Rs is -

(1) Using these values and buttord we get the lowest order for a Butterworth bandpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(2) Using these values and cheb1ord we get the lowest order for a Type 1 Chebyshev bandpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(3) Using these values and cheb2ord we get the lowest order for a Type 2 Chebyshev bandpass filter to be -

The corresponding normalized passband edge frequency Wn is -

(4) Using these values and ellipord we get the lowest order for an elliptic bandpass filter to be -

From the above results we observe that the ___________ filter has the lowest order meeting the specifications.

Q6.4 The normalized passband edge angular frequency Wp is -

The normalized stopband edge angular frequency Ws is -

The desired passband ripple Rp is -

The desired stopband ripple Rs is -

(1) Using these values and buttord we get the lowest order for a Butterworth bandstop filter to be -

The corresponding normalized passband edge frequent Wn is -

(2) Using these values and cheb1ord we get the lowest order for a Type 1 Chebyshev bandstop filter to be -

The corresponding normalized passband edge frequency Wn is -

(3) Using these values and cheb2ord we get the lowest order for a Type 2 Chebyshev bandstop filter to be -

docsity.com

Q6.7 The coefficients of the Type 1 Chebyshev highpass transfer function for the parameters given in Question 6.2 and

generated by running modified Program P6_1 are as follows:

The exact expression for the transfer function is -

The gain response of the filter as designed is given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

From the plot we conclude that the design __________ the specifications.

The plot of the unwrapped phase response and the group delay response of this filter is given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

Q6.8 The coefficients of the elliptic bandpass transfer function for the parameters given in Question 6.3 and generated

by running modified Program P6_1 are as follows:

The exact expression for the transfer function is -

The gain response of the filter as designed is given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

From the plot we conclude that the design __________ the specifications.

The plot of the unwrapped phase response and the group delay response of this filter is given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

6.2 DESIGN OF FIR FILTERS

Project 6.3 Gibb's Phenomenon

Answers: Q6.9 The MATLAB program generating the impulse response, truncated to 81 samples, of a zero-phase ideal lowpass

filter with a cutoff at c = 0.4 and plotting its magnitude response is given below:

< Insert program code here. Copy from m-file(s) and paste. >

The plot of the magnitude response generated by running this program is as shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. > The program was modified as indicated below to extract the coefficients of a shorter length filter using the colon

operator:

docsity.com

< Insert program code here. Copy from m-file(s) and paste. > The magnitude response plots generated by running the modified program for the following lengths, 61, 41, and

21, are given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. > From these plots we observe the oscillatory behavior of the magnitude responses in each case due to the Gibb's

phenomenon. The relation between the number of ripples and the length of the filter is -

The relation between the heights of the largest ripples and the length of the filter is -

The modified program to generate impulse response coefficients for an even-length filter is given below -

< Insert program code here. Copy from m-file(s) and paste. >

Project 6.4 Estimation of FIR Filter Order

Answers:

Q6.10 The estimated order of a linear-phase lowpass FIR filter with the specifications p = 2 kHz, s = 2.5 kHz, p =

0.005, s = 0.005, and FT = 10 kHz obtained using kaiserord is -

Q6.11 The estimated order of a linear-phase lowpass FIR filter with the specifications p = 2 kHz, s = 2.5 kHz, p =

0.005, s = 0.005, and FT = 10 kHz obtained using remezord is -

Comparing the above value of the order with that obtained in Question Q6.11 we observe -

Q6.12 The estimated order of a linear-phase bandpass FIR filter with the following specifications: passband edges at 1.

and 3.6 kHz, stopband edges at 1.2 and 4.2 kHz, p = 0.01, s = 0.02, and FT = 12 kHz, obtained using

kaiserord is -

Q6.13 The estimated order of a linear-phase bandpass FIR filter with the specifications as given in Question Q6.13 and

obtained using remezord is -

Comparing the above value of the order with that obtained in Question Q6.13 we observe -

docsity.com

The coefficients of the lowpass filter corresponding to the specifications given in Question 6.15 are as shown

below -

The generated gain and phase responses are given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

From the gain plot we observe that the filter as designed __________ meet the specifications.

The filter order that meets the specifications is -

Q6.17 The MATLAB program to design and plot the gain and phase responses of a linear-phase FIR filter using fir

and kaiser is shown below. The filter order N and the parameter  are evaluated using kaiserord. The

output data are the filter coefficients. < Insert program code here. Copy from m-file(s) and paste. > The coefficients of the lowpass filter corresponding to the specifications given in Question 6.23 are as shown

below -

The generated gain and phase responses are given below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

From the gain plot we observe that the filter as designed __________ meet the specifications.

The filter order that meets the specifications is -

Q6.18 The MATLAB program to design and plot the magnitude response of a linear-phase multiband FIR filter using

fir2 is shown below:

< Insert program code here. Copy from m-file(s) and paste. >

The magnitude response of the filter designed for the specifications used in Question Q6.19 is shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

From the magnitude response plot we observe that the filter as designed __________ meet the specifications.

Q6.19 The MATLAB program to design and plot the gain response of a linear-phase bandpass FIR filter using remez

and kaiserord is shown below:

< Insert program code here. Copy from m-file(s) and paste. >

docsity.com

The gain response of the filter designed for the specifications given in Question Q6.13 is shown below:

< Insert MATLAB figure(s) here. Copy from figure window(s) and paste. >

From the gain response plot we observe that the filter as designed __________ meet the specifications.

The filter order that meets the specifications is –

Muhammad Tahir Akhtar

([email protected])

docsity.com