ELEC3104: Digital Signal Processing Session 1, 2013 LABORATORY 3: IMPULSE RESPONSE, FREQUENCY RESPONSE AND POLES/ZEROS OF SYSTEMS

Similar documents
SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

EE 470 Signals and Systems

ELEC3104: Digital Signal Processing Session 1, 2013

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

Digital Filtering: Realization

Electrical & Computer Engineering Technology

1 PeZ: Introduction. 1.1 Controls for PeZ using pezdemo. Lab 15b: FIR Filter Design and PeZ: The z, n, and O! Domains

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

EE 422G - Signals and Systems Laboratory

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

Lab 6 - MCU CODEC IIR Filter ReadMeFirst

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

Lab S-9: Interference Removal from Electro-Cardiogram (ECG) Signals

Signals and Filtering

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Discrete-Time Signal Processing (DTSP) v14

DFT: Discrete Fourier Transform & Linear Signal Processing

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK

DSP First Lab 08: Frequency Response: Bandpass and Nulling Filters

The University of Queensland School of Information Technology and Electrical Engineering. ELEC3004/7312: Signals, Systems and Controls

UNIT II IIR FILTER DESIGN

EE 403: Digital Signal Processing

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

ELEC3104: Digital Signal Processing Session 1, 2013

ACS College of Engineering Department of Biomedical Engineering. BMDSP LAB (10BML77) Pre lab Questions ( ) Cycle-1

FX Basics. Filtering STOMPBOX DESIGN WORKSHOP. Esteban Maestre. CCRMA - Stanford University August 2013

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Digital Filters FIR and IIR Systems

ASN Filter Designer Professional/Lite Getting Started Guide

Basic Signals and Systems

George Mason University ECE 201: Introduction to Signal Analysis Spring 2017

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Project I: Phase Tracking and Baud Timing Correction Systems

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Digital Signal Processing ETI

HARDWARE IMPLEMENTATION OF LOCK-IN AMPLIFIER FOR NOISY SIGNALS

Lecture 17 z-transforms 2

AC : INTERACTIVE LEARNING DISCRETE TIME SIGNALS AND SYSTEMS WITH MATLAB AND TI DSK6713 DSP KIT

Filters. Phani Chavali

Experiments #6. Convolution and Linear Time Invariant Systems


Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Upconversion 3 30 Filter Design 4 18 Potpourri Total 100

Lab S-5: DLTI GUI and Nulling Filters. Please read through the information below prior to attending your lab.

Infinite Impulse Response Filters

Department of Electrical and Electronics Engineering Institute of Technology, Korba Chhattisgarh, India

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

1. page xviii, line 23:... conventional. Part of the reason for this...

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

! Discrete Time Signals. ! Signal Properties. ! Discrete Time Systems. ! Signals carry information. ! Examples:

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Digital Signal Processing ETI

Design of IIR Filter Using Model Order Reduction. Techniques

ECE 5650/4650 Exam II November 20, 2018 Name:

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

ECE 5650/4650 MATLAB Project 1

PROBLEM SET 5. Reminder: Quiz 1will be on March 6, during the regular class hour. Details to follow. z = e jω h[n] H(e jω ) H(z) DTFT.

Lab 0: Introduction to TIMS AND MATLAB

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

Signal Processing. Naureen Ghani. December 9, 2017


Spring 2018 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #1 Sinusoids, Transforms and Transfer Functions

Digital Filters Using the TMS320C6000

Problem Point Value Your score Topic 1 28 Filter Analysis 2 24 Filter Implementation 3 24 Filter Design 4 24 Potpourri Total 100

Experiment 2 Effects of Filtering

Memorial University of Newfoundland Faculty of Engineering and Applied Science. Lab Manual

CS3291: Digital Signal Processing

Fourier Signal Analysis

Experiment 6: Multirate Signal Processing

Signal processing preliminaries

Design and comparison of butterworth and chebyshev type-1 low pass filter using Matlab

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

DIGITAL SIGNAL PROCESSING WITH VHDL

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

1. In the command window, type "help conv" and press [enter]. Read the information displayed.


A Comparative Performance Analysis of High Pass Filter Using Bartlett Hanning And Blackman Harris Windows

LECTURER NOTE SMJE3163 DSP

Signal Processing Summary

STANFORD UNIVERSITY. DEPARTMENT of ELECTRICAL ENGINEERING. EE 102B Spring 2013 Lab #05: Generating DTMF Signals

DIGITAL SIGNAL PROCESSING (Date of document: 6 th May 2014)

FIR window method: A comparative Analysis

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2025 Fall 1999 Lab #7: Frequency Response & Bandpass Filters

ELT COMMUNICATION THEORY

Lecture 2 Review of Signals and Systems: Part 1. EE4900/EE6720 Digital Communications

Digital Filter Design using MATLAB

CHAPTER 9 FEEDBACK. NTUEE Electronics L.H. Lu 9-1

Lab 8: Frequency Response and Filtering

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Signals and Systems Using MATLAB

Transcription:

ELEC3104: Digital Signal Processing Session 1, 2013 The University of New South Wales School of Electrical Engineering and Telecommunications LABORATORY 3: IMPULSE RESPONSE, FREQUENCY RESPONSE AND POLES/ZEROS OF SYSTEMS INTRODUCTION Impulse Response and Frequency Response The response of a system can be specified in the time domain as well as in the frequency domain. In a recursive system, the impulse response is equal to the zero-state response of the system when the input xn ( ) = δ( n) and the system is initially relaxed. In the frequency domain, by knowing the frequency response, we are able to determine the response of the system to any sinusoidal input signal. Poles and Zeros By examining the transfer function of a filter, we can learn a lot about its magnitude and phase response. An easy way to achieve this is to plot the poles and zeros on the s-plane for a continuous time system or on the z-plane for a discrete time system. The magnitude and the phase response can then be determined by examining the positions of the poles and zeros relative to the frequency scale. In this laboratory, simple first order digital filter designs are explored. Pole-zero diagrams are also used to examine different filter designs, such as minimum phase, maximum phase, and all-pass filters. Before attending this laboratory, you should understand the following concepts: Pole-zero plots in the s-domain and the z-domain (for continuous time and discrete time signals). Minimum phase, Mixed phase, Maximum phase filters. All-pass filters, Linear phase filters. Stability of system in relation to the pole positions. Magnitude and phase response obtained from pole-zero diagrams. Impulse response and difference equations. LABORATORY PREPARATION This laboratory is purely based on programming in MATLAB. You should try and program as much as possible before coming to the laboratory session. Some students might find it easier to save their initial program code in an m-file on a floppy disk and bring it to the laboratory for further work during the laboratory session. MATLAB has a very informative Help Desk files in HTML format [Go to Help Help Desk (HTML)]. You should be able to find help for the functions used in all our laboratory exercises. [Within the MATLAB Help Desk, one might find it easier to look for help under ELEC 3104 Session 1, 2013 Page 1 of 7

the MATLAB functions by Index hyperlink, Signal Processing Toolbox Ref hyperlink (for discrete time signal processing functions) or Control System Toolbox Ref hyperlink (for some continuous time signal processing functions). Alternatively, you can type help or helpwin or doc followed by the name of the function directly from the MATLAB Command Window. You also might want to refer to Lab 0 Matlab Exercises. LABORATORY WORK The following filter is to be implemented in MATLAB: x(n) Σ -b 1 Z -1 y(n) -b 2 Z -1 The difference equation for this filter is: yn ( ) = xn ( ) byn ( 1) byn ( 2) 1 2 For this experiment, b 1 and b 2 can take the following values: TYPE b 1 b 2 A -1.343 0.9025 B -1.414 1 C -1.487 1.1025 Section I: Impulse Response Calculate the impulse response of each of the above filter (i.e., Type A, B and C) by setting up the input as an impulse of 512 samples in length. Apply this to the filter and plot its impulse response. You must implement the filter using loop functions (e.g. using a for loop or a while loop). Question 1: Are they FIR filters or IIR filters? How can you tell by the MATLAB plots? How can you tell without the use of MATLAB plots? Question 2: Comment on the shape of the impulse response in relation to the location of the poles. (You can plot the locations of the poles by using the zplane function). Are they all stable? Section I Checkpoint Marks: 2 out of 10 ELEC 3104 Session 1, 2013 Page 2 of 7

Section II: Frequency Response The frequency response can be calculated by taking the Fourier Transform of the impulse response. Get the frequency response of the filter (Type A only) by taking the Fast Fourier Transform of the impulse response. Use MATLAB s built-in function fft()to perform this task. Plot the output. Note: fft()in MATLAB returns a complex number. The frequency response we are after is the magnitude response. Hence outputs of fft()have to be modified into the correct form before plotting. Use abs function to get the magnitude. Refer to Lab 0 Matlab Exercise. Question 3: Comment on the shape of the frequency response in relation to the location of the poles. Plot the phase response of each filter below the magnitude response. This can also be done by using fft(), again manipulation of the outputs is necessary before plotting. Remember to label all axes. MATLAB FUNCTIONS MATLAB has some very useful signal processing tools. To get a frequency response of a system, the freqz() command can be used. The prototype for the freqz()command is freqz(numerator, denominator) where the numerator is the numerator of the system transfer function and the denominator is the denominator of the system transfer function. Find the transfer function of the above filter. Use freqz() to plot the magnitude response for the Type A filter. Question 4: What are the 2 plots that freqz() generates? What are the axes? Section II Checkpoint Marks: 2 out of 10 ELEC 3104 Session 1, 2013 Page 3 of 7

Section III: Filtering of Signals Set up a square pulse that is 32 samples long in total. Make it high for 10 samples and zero elsewhere. 1 32 samples 0 10 samples Filter this signal through filter Type B. Use a for loop to perform the filtering task. Set the initial conditions as y( 1) = 0 and y( 2) = 0. Plot the output. Question 5: In Section I, the impulse response of Type B is stable. However, this is not the case for all bounded signals, e.g., in this case, a square pulse. Examine the poles of this filter and comment on its stability. Question 6: What are some practical uses of this filter? Section III Checkpoint Marks: 1 out of 10 Section IV(a): First order Digital Filter Design Two first order digital filters are given as follows: z a H( z) = z z Gz ( ) = z a There are many MATLAB functions that facilitate digital filter designs. Use the following commands to plot the pole-zero diagrams of the above filters, H(z) and G(z), for both a=0.9 and a=-0.9. zplane(zeros,poles) freqz(numerator,denominator) Examine the MATLAB frequency plots and classify each of the above filters as Low Pass Filter (LPF) or High Pass Filter (HPF) for both a = 0.9 and a = -0.9. ELEC 3104 Session 1, 2013 Page 4 of 7

Question 7: Which ones are Finite Impulse Response (FIR) filters and which ones are Infinite Impulse Response (IIR) filters? H(z) a = 0.9 Pole / Zero Diagram LPF or HPF G(z) Pole / Zero Diagram LPF or HPF a = -0.9 Pole / Zero Diagram LPF or HPF Pole / Zero Diagram LPF or HPF Section IV(a) Checkpoint Marks: 1 out of 10 Section IV(b): All Pass Filter / Linear Phase Filter (i) All Pass Filter In this example, the digital filter has 4 poles and 4 zeros. Their locations are given as follows: Poles 0.75 ± j 0.25 ; -0.5 ± j 0.5 Zeros 1.2 ± j 0.4; -1 ± j Use the commands in Section I to generate a pole-zero plot and a frequency response plot. Comment on the magnitude response of this filter. Hint: You might find the MATLAB function poly()useful here and in all of the remaining sections. Question 8: What is the relationship between the poles and zeros? ELEC 3104 Session 1, 2013 Page 5 of 7

(ii) Linear Phase Filter In this example, the digital filter has 8 zeros (and 8 trivial poles located at 0). Their locations are given as follows: Zeros 0.75 ± j 0.25 ; -0.5 ± j 0.5; 1.2 ± j 0.4; -1 ± j Use the commands in Section I (a) to generate a pole-zero plot and a frequency response plot. Comment on the phase response of this filter. Question 3: What is the special relationship in regards to the location of the zeros? Question 4: Why is this class of filters useful in practice? Section IV (b) Checkpoint Marks: 2 out of 10 Section IV (c): Minimum Phase / Mixed Phase / Maximum Phase Filters In the following examples, the digital filters have 4 zeros each (and 4 trivial poles located at 0). Their locations are given as follows: Zeros Location Filter A 0.75 ± j 0.25 ; -0.5 ± j 0.5 Filter B 1.2 ± j 0.4 ; -0.5 ± j 0.5 Filter C 1.2 ± j 0.4; -1 ± j Use the commands in Section I (a) to generate a pole-zero plot and a frequency response plot for each of the filters (i.e. Filter A, Filter B and Filter C). Question 9: Are there any differences in their magnitude responses? Question 10: Comment on the phase lag of each of the filter. Question 11: Classify each of the above filters as either Maximum Phase, Mixed Phase of Minimum Phase filter. Section IV (c) Checkpoint Marks: 1 out of 10 ELEC 3104 Session 1, 2013 Page 6 of 7

Section V: Continuous Time System The s-plane In Section IV, we examined the discrete time domain and explored how pole-zero plots on the z-plane can facilitate us in digital filter designs. MATLAB has some built-in functions to generate pole-zero plots on the s-plane that facilitate analogue filters design in the continuous time domain as well. The functions of interests are as follows: tf(num,den) pzmap(h) freqs(num,den) Note that, please type help function_name if you do not understand how to use those functions. In the following example, the analogue filter has 2 poles and 2 zeros. Their locations are given below: Poles -0.5 ± j 4 Zeros -0.1 ± j The transfer function can also be expressed as: H() s = 2 s + 0.2s+ 1.01 2 s + s+ 16.25 Use the above commands to generate a pole-zero plot and a frequency response plot for the above analogue filter. Question 12: Comment on the location of the poles and the zeros in relation to the peaks and troughs of the frequency response. Section V Checkpoint Marks: 1 out of 10 MODULE OUTCOMES: At the end of the laboratory, students should have a thorough understanding of the following concepts: Low Pass Filters; High Pass Filters; All Pass Filters. Linear Phase Filters; Minimum / Mixed / Maximum Phase Filters. MATLAB implementation of impulse and frequency response. Three types of system stability: Stable, Marginal stable and Unstable and the relationship with the filter s pole positions. Preliminary concept of a digital oscillator. ELEC 3104 Session 1, 2013 Page 7 of 7