Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

Similar documents
EEL3135: Homework #4

Discrete-Time Signals and Systems. The z-transform and Its Application. The Direct z-transform. Region of Convergence. Reference: Sections

University of Illinois at Urbana-Champaign ECE 310: Digital Signal Processing

Review of Discrete-Time System

Your solutions for time-domain waveforms should all be expressed as real-valued functions.

Final Exam January 31, Solutions

Discrete-Time Fourier Transform (DTFT)

Discrete Time Systems

Transform Analysis of Linear Time-Invariant Systems

Digital Filters Ying Sun

ECE-314 Fall 2012 Review Questions for Midterm Examination II

Frequency-Domain C/S of LTI Systems

Lecture 7 Discrete Systems

ESE 531: Digital Signal Processing

Z-Transform. The Z-transform is the Discrete-Time counterpart of the Laplace Transform. Laplace : G(s) = g(t)e st dt. Z : G(z) =

Lecture 18: Stability

Discrete-time signals and systems

Very useful for designing and analyzing signal processing systems

ESE 531: Digital Signal Processing

Lecture 04: Discrete Frequency Domain Analysis (z-transform)

Chap 2. Discrete-Time Signals and Systems

! z-transform. " Tie up loose ends. " Regions of convergence properties. ! Inverse z-transform. " Inspection. " Partial fraction

EE 521: Instrumentation and Measurements

Homework 6 Solutions

Digital Signal Processing. Midterm 1 Solution

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

z-transform Chapter 6

Z Transform (Part - II)

Analog vs. discrete signals

Lecture 8 Finite Impulse Response Filters

Solutions: Homework Set # 5

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

Lecture 16: Zeros and Poles

E : Lecture 1 Introduction

Solutions. Number of Problems: 10

Discrete-Time David Johns and Ken Martin University of Toronto

Quiz. Good luck! Signals & Systems ( ) Number of Problems: 19. Number of Points: 19. Permitted aids:

Multidimensional digital signal processing

Ch. 7: Z-transform Reading

Grades will be determined by the correctness of your answers (explanations are not required).

Lecture 2 Discrete-Time LTI Systems: Introduction

ECE503: Digital Signal Processing Lecture 5

ELEG 305: Digital Signal Processing

Discrete-time Signals and Systems in

Discrete-Time Signals and Systems. Frequency Domain Analysis of LTI Systems. The Frequency Response Function. The Frequency Response Function

Review of Fundamentals of Digital Signal Processing

Digital Signal Processing Lecture 4

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Midterm 2 Solutions

Solutions. Number of Problems: 10

VI. Z Transform and DT System Analysis

Problem Set 2: Solution Due on Wed. 25th Sept. Fall 2013

Problem Value

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

summable Necessary and sufficient for BIBO stability of an LTI system. Also see poles.

Lecture 19 IIR Filters

Discrete Time Fourier Transform

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

VU Signal and Image Processing

EE 3054: Signals, Systems, and Transforms Spring A causal discrete-time LTI system is described by the equation. y(n) = 1 4.

New Mexico State University Klipsch School of Electrical Engineering EE312 - Signals and Systems I Fall 2015 Final Exam

Digital Signal Processing Lecture 3 - Discrete-Time Systems

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

Solutions. Number of Problems: 10

Review of Fundamentals of Digital Signal Processing

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

Z-Transform. x (n) Sampler

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

Grades will be determined by the correctness of your answers (explanations are not required).

ELEG 305: Digital Signal Processing

The Johns Hopkins University Department of Electrical and Computer Engineering Introduction to Linear Systems Fall 2002.

# FIR. [ ] = b k. # [ ]x[ n " k] [ ] = h k. x[ n] = Ae j" e j# ˆ n Complex exponential input. [ ]Ae j" e j ˆ. ˆ )Ae j# e j ˆ. y n. y n.

Discrete-time Fourier transform (DTFT) representation of DT aperiodic signals Section The (DT) Fourier transform (or spectrum) of x[n] is

ECGR4124 Digital Signal Processing Midterm Spring 2010

ECE503: Digital Signal Processing Lecture 4

Discrete Time Systems

GATE EE Topic wise Questions SIGNALS & SYSTEMS

EE482: Digital Signal Processing Applications

III. Time Domain Analysis of systems

Definition. A signal is a sequence of numbers. sequence is also referred to as being in l 1 (Z), or just in l 1. A sequence {x(n)} satisfying

Signals & Systems Handout #4

The Z transform (2) 1

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

Lecture 7 - IIR Filters

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

Problem Value

ELEN E4810: Digital Signal Processing Topic 2: Time domain

Lecture 9 Infinite Impulse Response Filters

Lecture 3 Matlab Simulink Minimum Phase, Maximum Phase and Linear Phase Systems

Parametric Signal Modeling and Linear Prediction Theory 1. Discrete-time Stochastic Processes (cont d)

Module 4 : Laplace and Z Transform Problem Set 4

APPLIED SIGNAL PROCESSING

Signals and Systems. Spring Room 324, Geology Palace, ,

Digital Signal Processing Lecture 5

2.161 Signal Processing: Continuous and Discrete Fall 2008

Discrete Time Fourier Transform (DTFT)

CMPT 318: Lecture 5 Complex Exponentials, Spectrum Representation

EECE 301 Signals & Systems Prof. Mark Fowler

Transcription:

Signals and Systems Problem Set: The z-transform and DT Fourier Transform Updated: October 9, 7

Problem Set Problem - Transfer functions in MATLAB A discrete-time, causal LTI system is described by the following difference equation a y[n] + a y[n ] = b u[n] + b u[n ], with a =, a =.5, b =, and b =. a) Generate the corresponding transfer function H (z) using the command tf(num,den,t). Hints: type help tf for the Matlab help. Use T = -, which indicates an undefined sampling time. Use Variable, z^- as an option (see Properties in the Matlab help for tf ). b) Is the system BIBO stable? Verify stability using the command pole and pzmap. c) Compute the impulse response {h [n]} of the system using the command impulse and plot it. Given your answer to b), what do you expect to see? d) Now make the system unstable by changing some coefficients. Compute and plot the impulse response. What do you expect to see? Hints: Think about which coefficients affect stability. Problem - Cascaded systems in MATLAB A discrete-time, causal LTI system is given by the transfer function H (z) = z. The system is cascaded with the system from Problem. response {h[n]} of the equivalent system, using: Compute in Matlab the impulse a) Convolution; Hint: Use the Matlab command conv. b) Multiplication in the frequency domain (z-domain); and compare them. Problem - Properties of the z-transform In lecture, we listed the following properties of the z-transform: Linearity: Time-shifting a {x [n]} + a {x [n]} a X (z) + a X (z) {x[n ]} z X(z) {x[n + ]} zx(z) Convolution: {x [n]} {x [n]} X (z) X (z) n Accumulation: { x[k]} z z X(z) Prove them. Hint: {s[n]} z/(z )

Problem - Frequency response of a system Consider the discrete-time, causal, LTI system shown in Fig.. a) Find the frequency response H(Ω) of the system. b) Find the impulse response h of the system. c) Sketch the magnitude response H(Ω) and the phase response Θ H (Ω). d) Find the frequency Ω db where the system s magnitude response drops to / of its maximum value. u + y z Figure Problem 5 - Frequency response of a system Consider the discrete-time, causal, LTI system shown below, where a is a constant and < a <. u y + a z a) Find the frequency response H(Ω) of the system. b) Find the impulse response h of the system. c) Sketch the magnitude response H(Ω) of the system for a =.9 and a =.. Problem 6 - System specifications The system function H(z) of a causal, discrete-time LTI system is given by H(z) = b + z az, where a is real and a <. Find the value of b so that the frequency response H(Ω) of the system satisfies the condition H(Ω) =, for all Ω Such a system is called an all-pass filter.

Problem 7 - System response to sinusoidal inputs (Exam ) Consider a causal, linear, time-invariant system described by the difference equation y[n] = ay[n ] + bu[n], where u[n] is the input, y[n] is the output for all times n. Let a = / and b = and the input to the system be given by ( u[n] = cos n + ) for all n. What is the output y[n] for all n? Hint: The following trigonometric table might be useful. θ /6 / / / sin θ cos θ tan θ - Problem 8 - Magnitude Response (Quiz 5) The magnitude responses of four causal, LTI systems are plotted below on the domain Ω = [, ]: Plot A Plot B H(Ω).5 H(Ω).5 Plot C Plot D H(Ω).5 H(Ω).5 For the following systems, decide which of the plots shows its magnitude response. a) b) H(z) = z z +.75 H(z) = 5 6 (z + ) z +.5

Problem 9 - System response to sinusoidal inputs Consider the causal, discrete-time, linear constant-coefficient difference equation: y[n].8y[n ] = u[n]. a) Determine the transfer function H(z) of the system. b) Is the system stable? Why? c) Substitute z = e jω = cos(ω) + j sin(ω), and solve for: i) The magnitude response: H(Ω) and ii) The phase response: Θ H (Ω) Given the input u[n] = cos((/)n) for all n: d) Calculate the output y[n] for all n. e) Define the transfer function in MATLAB. Hint: use the tf command, as shown in a previous exercise f) Now, using the freqresp(h,omega) command, compute the magnitude and phase response to the input. g) Simulate the system in MATLAB using the lsim command for one period of the input. Why does the simulated output not reflect your expectations? h) Try simulating the system for multiple periods of the input. What happens now? What do you expect to happen in the limit? 5

Sample Solutions Problem - Solution Sample solutions in the form of Matlab files can be found in the corresponding zip file on the website. Problem - Solution Sample solutions in the form of Matlab files can be found in the corresponding zip file on the website. Problem - Solution For the following proofs, let {x [n]} X (z), {x [n]} X (z), and {x [n]} X (z). Linearity Let {x [n]} = α {x [n]} + α {x [n]}, then X (z) = x [n]z n = (α x [n] + α x [n]) z n = α x [n]z n + α Thus a {x [n]} + a {x [n]} a X (z) + a X (z). x [n]z n = α X (z) + α X (z) Time-shifting Let {x [n]} = {x [n + k]}, then X (z) = x [n]z n = x [n + k]z n By a change of variables l = n + k, we obtain X (z) = x [l]z k l = z k l= l= Thus {x[n + k]} z k X(z). x [l]z l = z k X (z). 6

Convolution Let {x [n]} = {x [n]} {x [n]}, then ( ) X (z) = x [k]x [n k] z n = Thus = x [k] ( ) z k X (z) {x [n]} {x [n]} X (z) X (z). = X (z)x (z). x [k] ( x [n k]z n ) Accumulation Let {x [n]} = { n x [k]} = { = {x [n]} {s[n]} x [k]s[n k]} = By using the convolution property from above, we have ( ) z X (z) = X (z) S(z) = X (z). z Thus { n x[k]} z z X(z). x [k]{s[n k]} Problem - Solution a) From Fig., we have y[n] = u[n] + u[n ]. The frequency response can then be read directly from the LCCDE: H(Ω) = Y (Ω) X(Ω) = + e jω = e jω/ ( e jω/ + e jω/) = e jω/ cos(ω/), < Ω. b) The system has a finite impulse response h = {...,,,,,... }, which can be written as {h[n]} = {δ[n]} + {δ[n ]}. 7

c) Recall that a complex number z can also be written in cartesian form as z = a + jb. The magnitude is then given by z = a + b and the phase by z = atan(b, a), where atan is the quadrant arc-tangent function. In this case, however, magnitude and phase can be directly read: H(Ω) = cos(ω/), < Ω. Θ H (Ω) = Ω, < Ω. These are sketched below. H(Ω) Ω Θ H (Ω) Ω d) Let Ω db be the frequency for which the following relation holds: H(Ω db ) = max H(Ω) Inserting our particular H(Ω) we obtain ( ) ΩdB cos = and therefore Ω db =. Ω Problem 5 - Solution a) From the Figure we have y[n] ay[n ] = u[n] () The frequency response can then be read directly from the LCCDE: H(Ω) = Y (Ω) U(Ω) = ae jω. 8

b) The transfer function of the system is H(z) = z z a. Since the system is causal, its impulse response is given by h[n] = a n s[n]. c) Using Euler s formula we obtain H(Ω) = H(Ω) = ae jω = a cos Ω + ja sin Ω ( a cos Ω) + (a sin Ω) = + a a cos Ω which is sketched below for a =.9 and a =.. We see that the system is a discrete-time low-pass infinite impulse response (IIR) filter. H(Ω) a =.9 a =. Ω Problem 6 - Solution The frequency response of the system is H(Ω) = H(z) z=e jω With the condition H(Ω) = b + e jω ae jω = we have: = b + e jω ae jω b + e jω = ae jω b + cos Ω j sin Ω = a cos Ω + ja sin Ω + b + b cos Ω = + a a cos Ω For b = a the above relation holds for all Ω. 9

Problem 7 - Solution The output of an LTI system to a sinusoidal input can be obtained by analyzing the frequency response H(Ω) of the system. If an input u[n] = A cos(ω n + Θ) is applied to the system for all times n, the output y[n] is given by y[n] = H(Ω ) A cos ( Ω n + Θ + Θ H (Ω ) ) where H(Ω ) and Θ H (Ω ) are respectively the magnitude and phase response at frequency Ω. The given input has the frequency Ω = /. Therefore, ( ) H = b ae j/ = b + j a. Evaluating for a = / and b = yields the following magnitude and phase response, respectively: ( ) = b + a = H Θ H (Ω ) = H( ( a ) ) = (b) ( + ja) = arctan = 6. It follows that the output y[n] for the given input u[n] is, for all times n, given by y[n] = ( cos n + ). Problem 8 - Solution The solution can be found by looking at the magnitude of H(Ω) at Ω = and Ω =. a) Computing the values H(Ω = ) and H(Ω = ) yields H(Ω = ) = H(z = ) = +.75 = 7 H(Ω = ) = H(z = ) = +.75 =. Comparing with the plots given in the problem description, the correct answer is Plot B. b) Computing the values H() and H() yields H(Ω = ) = H(z = ) = 5 6 ( + ) +.5 = H(Ω = ) = H(z = ) = 5 6 ( + ) ( ) +.5 =. Comparing with the plots given in the problem description, the correct answer is Plot C.

Problem 9 - Solution Given the LTI system y[n].8y[n ] = u[n]: a) Find the transfer function: y[n].8y[n ] = u[n] Y (z).8z Y (z) = U(z) (.8z )Y (z) = U(z) H(z) =.8z z H(z) = z.8 b) Yes the system is stable, the only pole is at z=.8, which is inside the unit circle. c) We now substitute z = e jω = cos(ω) + j sin(ω) and solve for the magnitude and the phase response. H(z) =.8e jω H(Ω) =.8(cos(Ω) j sin(ω)) = (.8 cos(ω)) + (j.8 sin(ω)) i) Calculating the magnitude response: H(Ω) = (.8 cos(ω)) + (j.8 sin(ω)) = (.8 cos(ω)) + (j.8 sin(ω)) =.6.6 cos(ω) ii) Calculating the phase response: ( ) Θ H (Ω) = tan (.8 cos(ω)) + (j.8 sin(ω)) ( ).8 sin(ω) = tan.8 cos(ω) d) From the results in part c) we conclude that a sinusoidal input with Ω = / applied for all time, will result in a sinusoidal output of equal frequency, with H(Ω = /) =.97 times the magnitude, and with a phase shift of Θ H (Ω = /) =.8 radians. Therefore, the input u[n] = cos((/)n) for all n () will result in a steady state output of y[n] =.97 cos((/)n.8) for all n. () e) See MATLAB solution

f) See MATLAB solution g) We see the beginning of the simulated response does not correspond with our expectation. This is due to the system s transient response. In the lecture, we have seen that the above result holds when the input is applied for all time. When simulating the system using lsim, the input is applied starting at time n =, and hence the transient response affects the system s output! h) When simulating for multiple periods, the system s output converges to the expected value, as the transient response converges to. We will look at this in more detail in future lectures.