Exercises in Signals, Systems, and Transforms



Similar documents
UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE Fall 2010 Linear Systems Fundamentals

Frequency Response of FIR Filters

The Z transform (3) 1

(Refer Slide Time: 01:11-01:27)

3 Signals and Systems: Part II

TTT4120 Digital Signal Processing Suggested Solution to Exam Fall 2008

SGN-1158 Introduction to Signal Processing Test. Solutions

UNIVERSITY OF CALIFORNIA, SAN DIEGO Electrical & Computer Engineering Department ECE Fall 2009 Linear Systems Fundamentals

Digital Signal Processing IIR Filter Design via Impulse Invariance

Discrete-Time Signals and Systems

Introduction to the Z-transform

Lab 1. The Fourier Transform

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Design of Efficient Digital Interpolation Filters for Integer Upsampling. Daniel B. Turek

First, we show how to use known design specifications to determine filter order and 3dB cut-off

The continuous and discrete Fourier transforms

SIGNAL PROCESSING & SIMULATION NEWSLETTER

Throughout this text we will be considering various classes of signals and systems, developing models for them and studying their properties.

Design of FIR Filters

FFT Algorithms. Chapter 6. Contents 6.1

Signals and Systems. Richard Baraniuk NONRETURNABLE NO REFUNDS, EXCHANGES, OR CREDIT ON ANY COURSE PACKETS

Positive Feedback and Oscillators

Controller Design in Frequency Domain

SECTION 6 DIGITAL FILTERS

CIRCUITS LABORATORY EXPERIMENT 3. AC Circuit Analysis

RAJALAKSHMI ENGINEERING COLLEGE MA 2161 UNIT I - ORDINARY DIFFERENTIAL EQUATIONS PART A

PYKC Jan Lecture 1 Slide 1

Signal Detection C H A P T E R SIGNAL DETECTION AS HYPOTHESIS TESTING

Chapter 8 - Power Density Spectrum

1.1 Discrete-Time Fourier Transform

Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization.

Probability and Random Variables. Generation of random variables (r.v.)

3.1 State Space Models

Introduction to Digital Filters

Time series analysis Matlab tutorial. Joachim Gross

Convolution. The Delta Function and Impulse Response

min ǫ = E{e 2 [n]}. (11.2)

Engineering Sciences 22 Systems Summer 2004

1. s to Z-Domain Transfer Function

Math 115 Spring 2011 Written Homework 5 Solutions

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

ELEN E4810: Digital Signal Processing Topic 8: Filter Design: IIR

Luigi Piroddi Active Noise Control course notes (January 2015)

Review of Fourier series formulas. Representation of nonperiodic functions. ECE 3640 Lecture 5 Fourier Transforms and their properties

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

SAMPLE SOLUTIONS DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters Andreas Antoniou

9 Fourier Transform Properties

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

Lecture 1-6: Noise and Filters

Understanding Poles and Zeros

FURTHER VECTORS (MEI)

FUNDAMENTALS OF ENGINEERING (FE) EXAMINATION REVIEW

Lecture 9. Poles, Zeros & Filters (Lathi 4.10) Effects of Poles & Zeros on Frequency Response (1) Effects of Poles & Zeros on Frequency Response (3)

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Trend and Seasonal Components

Frequency Response of Filters

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

Class Note for Signals and Systems. Stanley Chan University of California, San Diego

2.161 Signal Processing: Continuous and Discrete Fall 2008

ANALYTICAL METHODS FOR ENGINEERS

Section 9.5: Equations of Lines and Planes

Discrete Convolution and the Discrete Fourier Transform

NETWORK STRUCTURES FOR IIR SYSTEMS. Solution 12.1

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

SWISS ARMY KNIFE INDICATOR John F. Ehlers

The Algorithms of Speech Recognition, Programming and Simulating in MATLAB

TEACHING AUTOMATIC CONTROL IN NON-SPECIALIST ENGINEERING SCHOOLS

SCHWEITZER ENGINEERING LABORATORIES, COMERCIAL LTDA.

1 Norms and Vector Spaces

General Framework for an Iterative Solution of Ax b. Jacobi s Method

Linear Equations and Inequalities

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Unified Lecture # 4 Vectors

Convolution, Correlation, & Fourier Transforms. James R. Graham 10/25/2005

24 Butterworth Filters

EE 402 RECITATION #13 REPORT

Unit2: Resistor/Capacitor-Filters

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

Power Spectral Density

Continued Fractions and the Euclidean Algorithm

CM0340 SOLNS. Do not turn this page over until instructed to do so by the Senior Invigilator.

Correlation and Convolution Class Notes for CMSC 426, Fall 2005 David Jacobs

A few words about imaginary numbers (and electronics) Mark Cohen

MATHEMATICAL SURVEY AND APPLICATION OF THE CROSS-AMBIGUITY FUNCTION

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

G(s) = Y (s)/u(s) In this representation, the output is always the Transfer function times the input. Y (s) = G(s)U(s).

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Loop Analysis. Chapter Introduction

Analysis/resynthesis with the short time Fourier transform

TMA4213/4215 Matematikk 4M/N Vår 2013

Math 241, Exam 1 Information.

San José State University Department of Electrical Engineering EE 112, Linear Systems, Spring 2010

4F7 Adaptive Filters (and Spectrum Estimation) Least Mean Square (LMS) Algorithm Sumeetpal Singh Engineering Department sss40@eng.cam.ac.

ALGEBRA 2/TRIGONOMETRY

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Section 1.1 Linear Equations: Slope and Equations of Lines

Equivalent Circuits and Transfer Functions

Lecture - 4 Diode Rectifier Circuits

1.4 Fast Fourier Transform (FFT) Algorithm

Transcription:

Exercises in Signals, Systems, and Transforms Ivan W. Selesnick Last edit: October 7, 4 Contents Discrete-Time Signals and Systems 3. Signals...................................................... 3. System Properties............................................... 5.3 More Convolution................................................4 Z Transforms.................................................. 5.5 Inverse Systems................................................. 8.6 Di erence Equations.............................................. 9.7 Complex Poles................................................. 4.8 Frequency Responses.............................................. 36.9 Summary Problems............................................... 6. Simple System Design............................................. 65. Matching.................................................... 66. More Problems................................................. 75 Continuous-Time Signals and Systems 78. Signals...................................................... 78. System Properties............................................... 79.3 Convolution................................................... 85.4 Laplace Transform............................................... 9.5 Di erential Equations............................................. 9.6 Complex Poles................................................. 94.7 Frequency Response...............................................8 Matching.................................................... 9.9 Simple System Design............................................. 3. Summary.................................................... 3 3 Fourier Transform 38 3. Fourier Transform............................................... 38 3. Fourier Series.................................................. 46 3.3 Modulation................................................... 48 4 The Sampling Theorem 5

Discrete-Time Signals and Systems. Signals.. Make an accurate sketch of each of the discrete-time signals (a) x(n) =u(n + 3) +.5 u(n ) (b) x(n) = (n + 3) +.5 (n ) (c) x(n) = n (n 4) (d) x(n) = n u( n ) (e) x(n) =( ) n u( n 4). (f) x(n) = (n + 4) (n ) + u(n 3) (g) X x(n) = 4 (n 3 k ) k= (h) X x(n) = ( ) k (n 3 k) k=.. Make a sketch of each of the following signals (a) X x(n) = (.9) k (n k) k= (b) x(n) = cos( n) u(n) (c) x(n) = u(n) u(n 4) + u(n 8)..3 Sketch x(n), x (n), x (n), and x 3 (n) where x(n) =u(n + 4) u(n), x (n) =x(n 3), nx x (n) =x(5 n), x 3 (n) = x(k) k= 3

..4 Sketch x(n) and x (n) where nx x(n) =(.5) n u(n), x (n) = x(k) k=..5 Sketch x(n) and x (n) where nx x(n) =n [ (n 5) + (n 3)], x (n) = x(k)..6 Make a sketch of each of the following signals (a) X f(n) = (.9) k (n 3 k) k= (b) X g(n) = (.9) k (n 3 k) k= k= (c) x(n) = cos(.5 n) u(n) (d) x(n) = cos(.5 n) u(n)..7 Plotting discrete-time signals in MATLAB. Use stem to plot the discrete-time impulse function: n = -:; f = (n == ); stem(n,f) Use stem to plot the discrete-time step function: f = (n >= ); stem(n,f) Make stem plots of the following signals. Decide for yourself what the range of n should be. f(n) =u(n) u(n 4) () g(n) = r(n) r(n 5) + r(n ) where r(n) := nu(n) () x(n) = (n) (n 4) (3) y(n) =(.9) n (u(n) u(n )) (4) v(n) = cos(. n) u(n) (5) 4

. System Properties.. A discrete-time system may be classified as follows: memoryless/with memory causal/noncausal linear/nonlinear time-invariant/time-varying BIBO stable/unstable Classify each of the following discrete-times systems. (a) y(n) = cos(x(n)). (b) y(n) =n x(n)+nx(n + ). (c) y(n) = max {x(n), x(n + )} (d) Note: the notation max{a, b} means for example; max{4, 6} = 6. x(n) when n is even y(n) = x(n ) when n is odd (e) y(n) = x(n)+ x(n ) 3 x(n ). (f) X y(n) = (/) k x(n k). k= That is, y(n) =x(n)+(/) x(n ) + (/4) x(n ) + (g) y(n) =x( n).. A discrete-time system is described by the following rule y(n) =.5 x(n)+.5 x(n ) where x is the input signal, and y the output signal. (a) Sketch the output signal, y(n), produced by the 4-point input signal, x(n) illustrated below. 3 x(n) - - 3 4 5 6 n 5

(b) Sketch the output signal, y(n), produced by the 4-point input signal, x(n) illustrated below. 3 x(n) - - 3 4 5 6 n (c) Classify the system as: i. causal/non-causal ii. linear/nonlinear iii. time-invariant/time-varying..3 A discrete-time system is described by the following rule ( x(n), when n is an even integer y(n) = x(n), when n is an odd integer where x is the input signal, and y the output signal. (a) Sketch the output signal, y(n), produced by the 5-point input signal, x(n) illustrated below. 3 x(n) - - 3 4 5 6 n (b) Classify the system as: i. linear/nonlinear ii. time-invariant/time-varying iii. stable/unstable..4 System classification: 6

..5 A discrete-time system is described by the following rule y(n) =( ) n x(n)+x(n ) where x is the input signal, and y the output signal. (a) Accurately sketch the output signal, y(n), produced by the input signal x(n) illustrated below. 3 x(n) - - 3 4 5 6 n (b) Classify the system as: i. causal/non-causal ii. linear/nonlinear iii. time-invariant/time-varying..6 Predict the output of an LTI system: 7

..7 The impulse response of a discrete-time LTI system is h(n) = (n) +3 (n ) + (n ). Find and sketch the output of this system when the input is the signal x(n) = (n) + 3 (n ) + (n )...8 Consider a discrete-time LTI system described by the rule y(n) =x(n 5) + x(n 7). What is the impulse response h(n) of this system?..9 The impulse response of a discrete-time LTI system is h(n) = (n) + (n ) + (n ). Sketch the output of this system when the input is x(n) = X k= (n 4 k)... The impulse response of a discrete-time LTI system is h(n) = (n) (n 4). Find and sketch the output of this system when the input is the step function x(n) =u(n)... Consider the discrete-time LTI system with impulse response h(n) =nu(n). (a) Find and sketch the output y(n) whentheinputx(n) is x(n) = (n) (n 5) + (n ). (b) Classify the system as BIBO stable/unstable. 8

.. Predict the output of an LTI system:..3 The impulse response h(n) of an LTI system is given by n h(n) = u(n). 3 Find and sketch the output y(n) when the input is given by (a) x(n) = (n) (b) x(n) = (n )..4 For the LTI system with impulse response h(t) = cos ( t) u(n), find and sketch the step response s(t) and classify the system as BIBO stable/unstable...5 Consider the LTI system with impulse response h(n) = (n ). (a) Find and sketch the output y(n) when the input x(n) is the impulse train with period 6, x(n) = X k= (n 6k). (b) Classify the system as BIBO stable/unstable...6 An LTI system is described by the following equation y(n) = X k= k x(n 3 k). Sketch the impulse response h(n) of this system...7 Consider the parallel combination of two LTI systems. 9

x(n) - h (n) - h (n)? + l - y(n) 6 You are told that h (n) =u(n) u(n ) + u(n ). You observe that the step response of the total system is s(n) = r(n) 3 r(n ) + r(n ) where r(n) =nu(n). Find and sketch h (n)...8 The impulse response of a discrete-time LTI system is given by if n is a positive prime number h(n) = otherwise (a) Is the system causal? (b) Is the system BIBO stable?..9 You observe an unknown LTI system and notice that u(n) u(n ) - S - (n ) 4 (n 4) Sketch the step response s(n). The step response is the system output when the input is the step function u(n)... For an LTI system it is known that input signal x(n) = (n)+3 (n ) produces the following output signal: n y(n) = u(n). What is the output signal when the following input signal is applied to the system? x (n) = (n ) + 6 (n 3).3 More Convolution.3. Derive and sketch the convolution x(n) =(f g)(n) where (a) f(n) = (n + ) + (n ) g(n) =3 (n + 5) + 3 (n 5)

(b) f(n) = (n 4) (n ) g(n) = (n 4) (n ) (c) f(n) = (n + ) (n + ) (n) g(n) = (n)+ (n + ) + (n + ) (d) f(n) =4 g(n) = (n) + (n ) + (n ). (e) f(n) = (n)+ (n ) + (n ) g(n) = (n ) (n 3). (f) f(n) =( ) n g(n) = (n)+ (n )..3. The impulse response of a discrete-time LTI system is h(n) =u(n) u(n 5). Sketch the output of this system when the input is x(n) = X k= (n 5 k)..3.3 The signal f is given by f(n) = cos n. The signal g is illustrated. g(n) - - 4 5 n - - Sketch the signal, x(n), obtained by convolving f(n) and g(n), x(n) =(f g)(n).

.3.4 The signals f and g are given by f(n) =, n g(n) = u(n). Sketch the signal, x(n), obtained by convolving f(n) and g(n), x(n) =(f g)(n)..3.5 The signals f(n) and g(n) are shown: f(n) 3 3 3 4 3 3 4 n g(n) 4 3 3 4 n Sketch the convolution x(n) = f(n) g(n)..3.6 Sketch the convolution of the discrete-time signal x(n) 3 x(n) - - 3 4 5 6 n with each of the following signals. (a) f(n) = (n) (n ) (b) f(n) =u(n) (c) f(n) =.5

(d) f(n) = X k= (n 5k).3.7 Discrete-time signals f and g are defined as: f(n) =a n u(n) g(n) =f( n) =a n u( n) Find the convolution: x(n) =(f g)(n) Plot f, g, and x when a =.9. You may use a computer for plotting..3.8 The N-point moving average filter has the impulse response /N apple n apple N h(n) = otherwise Use the Matlab conv command to compute y(n) =h(n) h(n) for N =5,,, and in each case make a stem plot of h(n) and y(n). What is the general expression for y(n)?.3.9 The convolution of two finite length signals can be written as a matrix vector product. Look at the documentation for the Matlab convmtx command and the following Matlab code that shows the convolution of two signals by () a matrix vector product and () the conv command. Describe the form of the convolution matrix and why it works. >> x = [ 4 5]; h = [ 3 - ]; >> convmtx(h,4)*x ans = 7 3 9 - >> conv(h,x) ans = 7 3 9-3

.3. The convolution y = h g, whereh and g are finite-length signals, can be represented as a matrix-vector product, y = Hg where H is a convolution matrix. In MATLAB, a convolution matrix H can be obtained with the command convmtx(h(:), K). Given finite-length sequences h and x, define H = convmtx(h(:), M) where M is such that the matrix-vector product H T x is defined, where H T denotes the transpose of H. In terms of convolution, what does the matrix-vector product H T x represent? Write a MATLAB function to compute H T x using the function conv and without creating the matrix H. The input to your function should be vectors, h and x..3. MATLAB conv function Let f(n) =u(n) u(n 5) g(n) = r(n) r(n 5) + r(n ). where r(n) :=nu(n). In MATLAB, use theconv function to compute the following convolutions. Use the stem function to plot the results. Be aware about the lengths of the signals. Make sure the horizontal axes in your plots are correct. (a) f(n) f(n) (b) f(n) f(n) f(n) (c) f(n) g(n) (d) g(n) (n) (e) g(n) g(n) Comment on your observations: Do you see any relationship between f(n) f(n) and g(n)? Compare f(n) with f(n) f(n) and with f(n) f(n) f(n). What happens as you repeatedly convolve this signal with itself? Use the commands title, xlabel, ylabel to label the axes of your plots..3. Convolution of non-causal signals in MATLAB Note that both of these signals start to the left of n =. f(n) =3 (n + ) (n ) + (n 3) (6) g(n) = u(n + 4) u(n 3) (7) First, plot the signals f, g, and f g by hand, without using MATLAB. Note the start and end points. Next, use MATLAB to make plots of f, g, and f g. Be aware that the conv function increases the length of vectors. To turn in: The plots of f(n), g(n), x(n), and your Matlab commands to create the plots..3.3 Smoothing data by N-point convolution. Save the data file DataEOG.txt from the course website. Load the data into Matlab using the command load DataEOG.txt Type whos to see your variables. One of the variables will be DataEOG. For convenience, rename it to x by typing: x = DataEOG; This signal comes from measuring electrical signals from the brain of a human subject. Make a stem plot of the signal x(n). You will see it doesn t look good because there are so many points. Make a plot of x(n) usingtheplot command. As you can see, for long signals we get a better plot using the plot command. Although discrete-time signals are most appropriately displayed with the stem command, for long discrete-time signals (like this one) we use the plot command for better appearance. 4

Create a simple impulse response for an LTI system: h = ones(,)/; Compute the convolution of h and x: y = conv(x, h); Make a MATLAB plot of the output y. (a) How does convolution change x? (Compare x and y.) (b) How is the length of y related to the length of x and h? (c) Plot x and y on the same graph. What problem do you see? Can you get y to line up with x? (d) Use the following commands: y = y; y(:5) = []; y(end-4:end) = []; What is the e ect of these commands? What is the length of y? Plot x and y on the same graph. What do you notice now? (e) Repeat the problem, but use a di erent impulse response: h = ones(,3)/3; What should the parameters in part (d) be now? (f) Repeat the problem, but use h = ones(,67)/67; What should the parameters in part (d) be now? Comment on your observations. To turn in: The plots, your Matlab commands to create the signals and plots, and discussion..4 Z Transforms.4. The Z-transform of the discrete-time signal x(n) is X(z) = 3 z +z 3 Accurately sketch the signal x(n)..4. Define the discrete-time signal x(n) as x(n) =.3 (n + ) +. (n) +.5 (n 3) (n 5) (a) Sketch x(n). (b) Write the Z-transform X(z). (c) Define G(z) =z X(z). Sketch g(n)..4.3 The signal g(n) is defined by the sketch. 5

.4.4 Let x(n) be the length-5 signal x(n) ={,, 3,, } where x() is underlined. Sketch the signal corresponding to each of the following Z-transforms. (a) X(z) (b) X(z ) (c) X(z)+X( z) (d) X(/z).4.5 Sketch the discrete-time signal x(n) withthez-transform X(z) =(+z)(+3z )( z )..4.6 Define three discrete-time signals: a(n) =u(n) u(n 4) b(n) = (n)+ (n 3) c(n) = (n) (n ) Define three new Z-transforms: D(z) =A( z), E(z) =A(/z), F(z) =A( /z) (a) Sketch a(n), b(n), c(n) (b) Write the Z-transforms A(z), B(z), C(z) (c) Write the Z-transforms D(z), E(z), F (z) (d) Sketch d(n), e(n), f(n).4.7 Find the Z-transform X(z) of the signal x(n) =4 n u(n) 3 n u(n). 3.4.8 The signal x is defined as x(n) =a n Find X(z) and the ROC. Consider separately the cases: a < and a. 6

.4.9 Find the right-sided signal x(n) from the Z-transform X(z) = z + z 5 6 z + 6.4. Consider the LTI system with impulse response n h(n) =3 u(n) 3 Find the output y(n) whentheinputx(n) is n x(n) = u(n)..4. A discrete-time LTI system has impulse response n h(n) = u(n) 5 Find the output signal produced by the system when the input signal is n x(n) =3 u(n).4. Consider the transfer functions of two discrete-time LTI systems, H (z) =+z + z, H (z) =+z + z. (a) If these two systems are cascaded in series, what is the impulse response of the total system? x(n) - H (z) - H (z) - y(n) (b) If these two systems are combined in parallel, what is the impulse response of the total system? x(n) - H (z) - H (z)? + j - y(n) 6.4.3 Connected systems: 7

.4.4 Consider the parallel combination of two LTI systems. x(n) - h (n) - h (n)? + l - y(n) 6 You are told that the impulse responses of the two systems are n h (n) =3 u(n) and h (n) = n u(n) 3 (a) Find the impulse response h(n) of the total system. (b) You want to implement the total system as a cascade of two first order systems g (n) and g (n). Find g (n) and g (n), each with a single pole, such that when they are connected in cascade, they give the same system as h (n) and h (n) connected in parallel. x(n) - g (n) - g (n) - y(n).4.5 Consider the cascade combination of two LTI systems. x(n) - SYS - SYS - y(n) The impulse response of SYS is h (n) = (n)+.5 (n ).5 (n ) and the transfer function of SYS is H (z) =z +z +z 3. (a) Sketch the impulse response of the total system. (b) What is the transfer function of the total system?.5 Inverse Systems.5. The impulse response of a discrete-time LTI system is h(n) = (n)+ n u(n). (a) Find the impulse response of the stable inverse of this system. 8

(b) Use MATLAB to numerically verify the correctness of your answer by computing the convolution of h(n) and the impulse response of the inverse system. You should get (n). Include your program and plots with your solution..5. Adiscrete-timeLTIsystem x(n) - h(n) - y(n) has the impulse response h(n) = (n) + 3.5 (n ) +.5 (n ). (a) Find the transfer function of the system h(n). (b) Find the impulse response of the stable inverse of this system. (c) Use MATLAB to numerically verify the correctness of your answer by computing the convolution of h(n) and the impulse response of the inverse system. You should get (n). Include your program and plots with your solution..5.3 Consider a discrete-time LTI system with the impulse response h(n) = (n + ) 3 (n)+ (n ). (a) Find the impulse response g(n) of the stable inverse of this system. (b) Use MATLAB to numerically verify the correctness of your answer by computing the convolution of h(n) and the impulse response of the inverse system. You should get (n). Include your program and plots with your solution..5.4 A causal discrete-time LTI system x(n) - H(z) - y(n) is described by the di erence equation y(n) y(n ) = x(n) x(n ). 3 What is the impulse response of the stable inverse of this system?.6 Di erence Equations.6. A causal discrete-time system is described by the di erence equation, y(n) = x(n) + 3x(n ) + x(n 4) (a) What is the transfer function of the system? (b) Sketch the impulse response of the system..6. Given the impulse response... 9

.6.3 A causal discrete-time LTI system is implemented using the di erence equation y(n) = x(n) + x(n ) +.5 y(n ) where x is the input signal, and y the output signal. Find and sketch the impulse response of the system..6.4 Given the impulse response....6.5 Given two discrete-time LTI systems described by the di erence equations H : r(n)+ r(n ) = x(n)+x(n ) 3 H : y(n)+ y(n ) = r(n) r(n ) 3 let H be the cascade of H and H in series. r(n) x(n) H H y(n)

Find the di erence equation of the total system, H. Suppose H and H are causal systems. Is H causal? Is H stable?.6.6 Two causal LTI systems are combined in parallel: H f(n) x(n) + y(n) H g(n) The two systems are implemented with di erence equations: H : f(n) =x(n)+x(n ) +. f(n ) H : g(n) =x(n)+x(n ) +. g(n ) Find the di erence equation describing the total system between input x(n) and output y(n)..6.7 Consider a causal discrete-time LTI system described by the di erence equation y(n) 5 6 y(n ) + 6 y(n ) = x(n)+ x(n ). 3 (a) Find the transfer function H(z). (b) Find the impulse response h(n). You may use MATLAB to do the partial fraction expansion. The MATLAB function is residue. Make a stem plot of h(n) with MATLAB. (c) OMIT: Plot the magnitude of the frequency response H(e j! ) of the system. Use the MATLAB function freqz..6.8 A room where echos are present can be modeled as an LTI system that has the following rule: y(n) = X k x(n k) k= The output y(n) is made up of delayed versions of the input x(n) of decaying amplitude. (a) Sketch the impulse response h(n). (b) What is transfer function H(z)? (c) Write the corresponding finite-order di erence equation..6.9 Echo Canceler. A recorded discrete-time signal r(n) is distorted due to an echo. The echo has a lag of samples and an amplitude of /3. That means r(n) =x(n)+ x(n ) 3 where x(n) is the original signal. Design an LTI system with impulse response g(n) that removes the echo from the recorded signal. That means, the system you design should recover the original signal x(n) from the signal r(n). (a) Find the impulse response g(n). (b) Find a di erence equation that can be used to implement the system. (c) Is the system you designed both causal and stable?

.6. Consider a causal discrete-time LTI system with the impulse response h(n) = 3 n 3 u(n)+ (n 4) 4 (a) Make a stem plot of h(n) with MATLAB. (b) Find the transfer function H(z). (c) Find the di erence equation that describes this system. (d) Plot the magnitude of the frequency response H(e j! ) of the system. Use the MATLAB command freqz..6. Consider a stable discrete-time LTI system described by the di erence equation y(n) = x(n) x(n ) y(n ). (a) Find the transfer function H(z) and its ROC. (b) Find the impulse response h(n)..6. Two LTI systems are connected in series: - SYS - SYS - The system SYS is described by the di erence equation y(n) = x(n) +x(n ) + x(n ) where x(n) represents the input into SYS and y(n) represents the output of SYS. The system SYS is described by the di erence equation y(n) = x(n) + x(n ) + x(n ) where x(n) represents the input into SYS and y(n) represents the output of SYS. (a) What di erence equation describes the total system? (b) Sketch the impulse response of the total system..6.3 Three causal discrete-time LTI systems are used to create the a single LTI system. H r(n) x(n) H f(n) + y(n) H 3 g(n) The di erence equations used to implement the systems are: H : r(n) =x(n) r(n ) H : f(n) =r(n) f(n 3 ) H 3 : g(n) =r(n) r(n 4 ) What is the transfer function H tot (z) for the total system?

.6.4 Given the di erence equation....6.5 Di erence equations in MATLAB Suppose a system is implemented with the di erence equation: y(n) = x(n)+ x(n ).95 y(n ) Write your own MATLAB function, mydiffeq, to implement this di erence equation using a for loop. If the input signal is N-samples long ( apple n apple N ), your program should find the first N samples of the output y(n) (apple n apple N ). Remember that MATLAB indexing starts with, not, but don t let this confuse you. Use x( ) = and y( ) =. (a) Is this system linear? Use your MATLAB function to confirm your answer: y = mydiffeq(x) y = mydiffeq(x) y3 = mydiffeq(x+*x) Use any signals x, x you like. (b) Is this system time-invariant? Confirm this in MATLAB (how?). (c) Compute and plot the impulse response of this system. Use x = [, zeros(,)]; as input. (d) Define x(n) = cos( n/8) [u(n) u(n 5)]. Compute the output of the system in two ways: () y(n) =h(n) x(n) usingtheconv command. () Use your function to find the output for this input signal. Are the two computed output signals the same? (e) Write a new MATLAB function for the system with the di erence equation: y(n) = x(n)+ x(n ). y(n ) Find and plots the impulse response of this system. Comment on your observations. (f) For both systems, use the MATLAB function filter to implement the di erence equations. Do the output signals obtained using the MATLAB function filter agree with the output signals obtained using your function mydiffeq? (They should!) To turn in: The plots, your MATLAB commands to create the signals and plots, and discussion. 3

.7 Complex Poles.7. A causal discrete-time LTI system is implemented using the di erence equation y(n) =x(n) y(n ) where x is the input signal, and y the output signal. (a) Sketch the pole/zero diagram of the system. (b) Find and sketch the impulse response of the system. (c) Classify the system as stable/unstable..7. The impulse response of an LTI discrete-time system is n h(n) = cos 3 n u(n). Find the di erence equation that implements this system..7.3 A causal discrete-time LTI system is implemented using the di erence equation y(n) = x(n) 4 y(n ) where x is the input signal, and y the output signal. (a) Sketch the pole/zero diagram of the system. (b) Find and sketch the impulse response of the system. (c) Classify the system as stable/unstable. (d) Find the form of the output signal when the input signal is n x(n) = u(n). 3 You do not need to compute the constants produced by the partial fraction expansion procedure (PFA) you can just leave them as constants: A, B, etc. Be as accurate as you can be in your answer without actually going through the arithmetic of the PFA..7.4 A causal discrete-time LTI system is implemented using the di erence equation y(n) =x(n) x(n ) + y(n ) 5 y(n ) 8 where x is the input signal, and y the output signal. (a) Sketch the pole/zero diagram of the system. (b) Find and sketch the impulse response of the system. (c) Use Matlab to verify your answers to (a) and (b). Use the command residue and zplane. Use the command filter to compute the impulse response numerically and verify that it is the same as your formula in (b)..7.5 A causal discrete-time LTI system is implemented using the di erence equation y(n) =x(n) p x(n ) + x(n ).5 y(n ) where x is the input signal, and y the output signal. (a) Find the poles and zeros of the system. (b) Sketch the pole/zero diagram of the system. (c) Find the dc gain of the system. (d) Find the value of the frequency response at! =. 4

(e) Based on parts (a),(b),(c), roughly sketch the frequency response magnitude H f (!) of the system. (f) Suppose the step function u(n) is applied as the input signal to the system. Find the steady state behavior of the output signal. (g) Suppose the cosine waveform cos(.5 n)u(n) is applied as the input signal to the system. Find the steady state behavior of the output signal. (h) Find the impulse response of the system. Your answer should not contain j..7.6 Consider an LTI system with the di erence equation y(n) = x(n).5x(n ) + y(n ).7y(n ) (8) Compute the impulse response of the system in three ways: (a) Use the MATLAB function filter to numerically compute the impulse response of this system. Make a stem plot of the impulse response. (b) Use the MATLAB function residue to compute the partial fraction of z H(z). Write H(z) as a sum of first-order terms. Then write the impulse response as h(n) =C (p ) n u(n)+c (p ) n u(n). (9) The four values C,C,p,p are found using the residue command. For this system they will be complex! Use Equation (9) to compute in Matlab the impulse response, n = :3; h = C*p.^n + C*p.^n; Note that even though C,C,p,p are complex, the impulse response h(n) is real-valued. (The imaginary parts cancel out.) Is this what you find? Make a stem plot of the impulse response you have computed using Equation (9). Verify that the impulse response is the same as the impulse response obtained using the filter function in the previous part. (c) Compute the impulse response using the formula for a damped sinusoid: h(n) =Ar n cos(! o n + o ) u(n). () This formula does not involve any complex numbers. This formula is obtained from Equation (9) by putting the complex values C,C,p,p into polar form: C = R e j C = R e j p = r e j p = r e j. To put a complex number, c, in to polar form in MATLAB, use the functions abs and angle. Specifically c = re j where r = abs(c) and = angle(c). Using MATLAB, find the real values R,, etc. You should find that R = R, =, r = r, and =. Is this what you find? Therefore, the formula in Equation (9) becomes h(n) =R e j (r e j ) n u(n)+r e j (r e j ) n u(n) = R e j r n e j n u(n)+r e j r n e j n u(n) = R r n (e j( n+ ) +e j( n+ ) ) u(n) =R r n cos( n + ) u(n). This finally has the form of a damped sinusoid (). Using MATLAB, compute the impulse response using Equation () 5

n = :3; h = A * r.^n.*... Verify that the impulse response is the same as the impulse response obtained using the filter function in (a)..7.7 Repeat the previous problem for the system y(n) = x(n).5x(n ) + x(n ) + y(n ).7y(n ) () 6

.7.8 The diagrams on the following pages show the impulse responses and pole-zero diagrams of 8 causal discrete-time LTI systems. But the diagrams are out of order. Match each diagram by filling out the following table. You should do this problem without using MATLAB or any other computational tools. In the pole-zero diagrams, the zeros are shown with o and the poles are shown by x. OrderMatching/Match IMPULSE RESPONSE 3 4 5 6 7 8 POLE-ZERO DIAGRAM 7

IMPULSE RESPONSE IMPULSE RESPONSE.5.5.5 5 5 3 4 3 4. IMPULSE RESPONSE 3. IMPULSE RESPONSE 4.8.8.6.6.4.4.. 3 4 3 4 IMPULSE RESPONSE 5 IMPULSE RESPONSE 6.5.5.5.5 3 4.5 3 4 3 IMPULSE RESPONSE 7 IMPULSE RESPONSE 8.5.5 3 4 3 4 8

ZERO POLE DIAGRAM ZERO POLE DIAGRAM.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 3 ZERO POLE DIAGRAM 4.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 5 ZERO POLE DIAGRAM 6.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 7 ZERO POLE DIAGRAM 8.5.5.5.5.5.5.5.5 9

.7.9 The diagrams on the following pages show the pole-zero diagrams and impulse responses of 8 causal discrete-time LTI systems. But the diagrams are out of order. Match each diagram by filling out the following table. You should do this problem without using MATLAB or any other computational tools. In the pole-zero diagrams, the zeros are shown with o and the poles are shown by x. ro POLE-ZERO DIAGRAM 3 4 5 6 7 8 IMPULSE RESPONSE 3

POLE ZERO DIAGRAM POLE ZERO DIAGRAM.5.5.5.5.5.5.5.5.5.5.5.5 POLE ZERO DIAGRAM 3 POLE ZERO DIAGRAM 4.5.5 3.5.5.5.5.5.5.5.5.5.5 POLE ZERO DIAGRAM 5 POLE ZERO DIAGRAM 6.5.5.5.5.5.5.5.5.5.5.5.5 POLE ZERO DIAGRAM 7 POLE ZERO DIAGRAM 8.5.5.5.5.5.5.5.5.5.5.5.5 3

IMPULSE RESPONSE IMPULSE RESPONSE.8.6.4. 3 4 5.5.5 3 4 5 IMPULSE RESPONSE 3 IMPULSE RESPONSE 4.5.5 3 4 5 3 4 5 IMPULSE RESPONSE 5 IMPULSE RESPONSE 6.5.5 3 4 5 3 4 5 5 IMPULSE RESPONSE 7 IMPULSE RESPONSE 8 5 3 4 5 3 4 5 3

.7. The pole-zero diagrams of eight discrete-time systems are illustrated below. The impulse response h(n) of each system is also shown, but in a di erent order. Match each frequency response to its pole-zero diagram by filling out the table. POLE-ZERO DIAGRAM 3 4 5 6 7 8 IMPULSE RESPONSE 33

ZERO POLE DIAGRAM ZERO POLE DIAGRAM.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 3 ZERO POLE DIAGRAM 4.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 5 ZERO POLE DIAGRAM 6.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 7 ZERO POLE DIAGRAM 8.5.5.5.5.5.5.5.5 34

IMPULSE RESPONSE 8 6 IMPULSE RESPONSE 4 4 6 3 4 3 4. IMPULSE RESPONSE 3 IMPULSE RESPONSE 4 5.8.6.4 5. 3 4 3 4 IMPULSE RESPONSE 5 IMPULSE RESPONSE 6 5.5 5.5 5 3 4 3 4 IMPULSE RESPONSE 7 IMPULSE RESPONSE 8.5.5.5.5 3 4.5 3 4.7. The impulse response of a discrete-time LTI system is given by h(n) =A (.7) n u(n). Suppose the signal x(n) =B (.9) n u(n) 35

is input to the system. A and B are unknown constants. Which of the following could be the output signal y(n)? Choose all that apply and provide an explanation for your answer. (a) y(n) =K (.6) n u(n)+k (.) n u(n) (b) y(n) =K (.7) n u( n)+k (.) n u( n) (c) y(n) =K (.7) n u(n)+k (.9) n u(n) (d) y(n) =K (.7) n u(n)+k (.) n u( n) (e) y(n) =K (.7) n u(n)+k (.) n u(n)+k 3 (.9) n u(n) (f) y(n) =K (.7) n u(n)+k (.) n u(n)+k 3 u(n).7. The impulse response of a discrete-time LTI system is given by h(n) =A (.7) n u(n). Suppose the signal x(n) = B cos(. n) u(n) is input to the system. A and B are unknown constants. Which of the following could be the output signal y(n)? Choose all that apply and provide an explanation for your answer. (a) y(n) =K (.7) n cos(. n+ ) u(n) (b) y(n) =K (.4) n cos(.5 n+ ) u(n) (c) y(n) =K (.4) n u(n)+k cos(.4 n+ ) u(n) (d) y(n) =K (.4) n u( (e) y(n) =K (.7) n u( n)+k cos(.4 n+ ) u(n) n)+k cos(. n+ ) u(n) (f) y(n) =K (.7) n u(n)+k cos(. n+ ) u(n).7.3 A causal LTI discrete-time system is implemented using the di erence equation y(n) =b x(n) a y(n ) a y(n ) where a k, b k are unknown real constants. Which of the following could be the impulse response? Choose all that apply and provide an explanation for your answer. (a) h(n) =K a n u(n)+k b n u(n) (b) h(n) =K a n u(n)+k r n cos(! n + ) u(n) (c) h(n) =K r n cos(! n + ) u(n) (d) h(n) =K r n cos(! n + ) u(n)+k r n cos(! n + ) u(n) (with! 6=! )..8 Frequency Responses.8. The frequency response H f (!) of a discrete-time LTI system is H f e j!.4 <!<.4 (!) =.4 <! <. Find the output y(n) when the input x(n) is x(n) =. cos(.3 n)+.5 cos(.5 n). Put y(n) in simplest real form (your answer should not contain j). Hint: Use Euler s formula and the relation e j!on! LTI SYSTEM! H f (! o ) e j!on 36

.8. The frequency response H f (!) of a discrete-time LTI system is as shown. H f (!) H HHH H H! H f (!) is real-valued so the phase is. Find the output y(n) when the input x(n) is x(n) = + cos(.3 n). Put y(n) in simplest real form (your answer should not contain j)..8.3 A stable linear time invariant system has the transfer function H(z) = z(z + ) (z /)(z + 4) (a) Find the frequency response H f (!) of this system. (b) Calculate the value of the frequency response H f (!) at! =.. (c) Find the output y(n) produced by the input x(n) = cos(. n)..8.4 A causal LTI system is implemented with the di erence equation y(n) =.5 x(n) +. x(n ) +.5 y(n ). y(n ). (a) Find the frequency response of this system. (b) Compute and plot the frequency response magnitude H f (!) using the MATLAB command freqz. (c) Find the output produced by the input x(n) = cos(. n). Compare your answer with the output signal found numerically with the MATLAB command filter. (d) Use the Matlab command zplane to make the pole-zero diagram..8.5 Two discrete-time LTI systems are used in series. x(n) H G y(n) The frequency responses are shown. H f (!) 3 3 3 3! G f (!) 3 3 3 3! 37

(a) Accurately sketch the frequency response of the total system. (b) Find the output signal y(n) produced by the input signal x(n) = 5 + 3 cos n + cos 3 n +4( ) n..8.6 Three discrete-time LTI systems are combined as illustrated: H r(n) x(n) H f(n) + y(n) H 3 g(n) The frequency responses of the systems are: H f (!) 3 3 3 3 H f (!) 3 3 3 3 H f 3 (!) 3 3 3 3 (a) Accurately sketch the frequency response of the total system. (b) Find the output signal y(n) produced by the input signal x(n) = 5 + 3 cos 6 n + cos n +4( ) n..8.7 Three discrete-time LTI systems are combined as illustrated:!!! H r(n) x(n) H f(n) + y(n) H 3 g(n) The frequency responses of the systems are: H f (!) 3 3 3 3! 38

H f (!) 3 3 3 3! H f 3 (!) 3 3 3 3! (a) Accurately sketch the frequency response of the total system. (b) Find the output signal y(n) produced by the input signal x(n) = + cos 3 n + 3 cos n +.5( ) n..8.8 The mangitude and phase of the frequency response of a discrete-time LTI system are: H f for! <.5 (!) = for.5 <! <. \H f (!) =.3 for <!<.3 for <!<. (a) Sketch the frequency response magnitude H f (!) for! apple. (b) Sketch the frequency response phase \H f (!) for! apple. (c) Find the output signal y(n) produced by the input signal x(n) =sin(. n) + 3 cos(.6 n+. )..8.9 The frequency response of a discrete-time LTI system is given by, 8 ><,! apple.5 H f (!) =,.5 <! apple.5 >:,.5 <! apple (a) Sketch the frequency response. (b) Find the output signal produced by the input signal x(n) = 3 + cos(.3 n) + cos(.7 n)+( ) n. (c) Classify the system as a low-pass filter, high-pass filter, band-pass filter, band-stop filter, or none of these..8. The frequency response of a discrete-time LTI system is given by 8 >< j, <!apple.4 H f (!) = j,.4 apple!< >:,.4 <! apple (a) Sketch the frequency response magnitude H f (!) for! apple. (b) Sketch the frequency response phase \H f (!) for! apple. 39

(c) Find the output signal y(n) when the input signal is x(n) = cos(.3 n)+.7 cos(.7 n)+( ) n. Simplify your answer so that it does not contain j..8. The frequency response of a real discrete-time LTI system is given by 8 ><, apple! apple.4 H f (!) = j,.4 <!< >: j, <!<.4 (a) Sketch the frequency response magnitude H f (!) for! apple. (b) Sketch the frequency response phase \H f (!) for! apple. (c) Find the output signal y(n) produced by the input signal x(n) = 3 + cos(.3 n) + cos(.7 n). Simplify your answer so that it does not contain j. (d) Classify the system as a low-pass filter, high-pass filter, band-pass filter, band-stop filter, or none of these..8. The frequency response of a discrete-time LTI system is given by ( H f e j.5!, for! apple.4 (!) =, for.4 <! apple (a) Sketch the frequency response magnitude H f (!) for! apple. (b) Sketch the frequency response phase \H f (!) for! apple. (c) Find the output signal y(n) produced by the input signal x(n) = 3 + cos(.3 n)+.7 cos(.7 n)+( ) n. Simplify your answer so that it does not contain j..8.3 The frequency response of a discrete-time LTI system is given by 8 ><,! apple.5 H f (!) = e >: j.5!,.5 <! apple.5,.5 <! apple (a) Sketch the frequency response magnitude H f (!) for! apple. (b) Sketch the frequency response phase \H f (!) for! apple. (c) Find the output signal produced by the input signal x(n) = 3 + cos(.3 n) + cos(.7 n)+( ) n. Simplify your answer so that it does not contain j. (d) Classify the system as a low-pass filter, high-pass filter, band-pass filter, band-stop filter, or none of these..8.4 The frequency response of a discrete-time LTI system is given by 8 >< e j!,! apple.5 H f (!) = e >: j!,.5 <! apple.5,.5 <! apple 4

(a) Sketch the frequency response magnitude H f (!) for! apple. (b) Sketch the frequency response phase \H f (!) for! apple. (c) Find the output signal produced by the input signal x(n) = 3 + cos(.3 n) + cos(.7 n)+( ) n. (d) Is the impulse response of the system real-valued? Explain..8.5 The following figure shows the frequency response magnitudes H f (!) of four discrete-time LTI systems (Systems A, B, C, and D). The signal x(n) = cos(.5 n) u(n 5) + cos(.4 n) u(n 5) shown below is applied as the input to each of the four systems. The input signal x(n) and each of the four output signals are also shown below. But the output signals are out of order. For each of the four systems, identify which signal is the output signal. Explain your answer. You should do this problem without using MATLAB or any other computational tools. utput System A B C D Output signal 5 INPUT SIGNAL 5 3 4 5 6 7 8 9 n SYSTEM A.8.6.4..5 π.5 π.75 π π ω SYSTEM B.8.6.4..5 π.5 π.75 π π ω SYSTEM C..8.6.4..5 π.5 π.75 π π ω SYSTEM D..8.6.4..5 π.5 π.75 π π ω 4

5 OUTPUT SIGNALS OUTPUT SIGNAL 5 3 4 5 6 7 8 9 n 5 OUTPUT SIGNAL 5 3 4 5 6 7 8 9 n 5 OUTPUT SIGNAL 3 5 3 4 5 6 7 8 9 n 5 OUTPUT SIGNAL 4 5 3 4 5 6 7 8 9 n 4

.8.6 The three discrete-time signals below are each applied to two discrete-time systems to produce a total of six output signals. The frequency response of each system is shown below. Indicate how each of the six output signals are produced by completing the table below. 4 INPUT SIGNAL 4 INPUT SIGNAL 4 5 5 5 5 4 5 5 5 5 4 INPUT SIGNAL 3 4 5 5 5 5 4 SYSTEM FREQUENCY RESPONSE 4 SYSTEM FREQUENCY RESPONSE 3 3 H f (ω) H f (ω).5 π.5 π.75 π π ω.5 π.5 π.75 π π ω Input signal System Output signal 3 3 43

4 OUTPUT SIGNAL 4 OUTPUT SIGNAL 4 5 5 5 5 4 5 5 5 5 4 OUTPUT SIGNAL 3 4 OUTPUT SIGNAL 4 4 5 5 5 5 4 5 5 5 5 4 OUTPUT SIGNAL 5 4 OUTPUT SIGNAL 6 4 5 5 5 5 4 5 5 5 5 44

.8.7 The three discrete-time signals below are each applied to two discrete-time LTI systems to produce a total of six output signals. The frequency response H f (!) of each system is shown below. Indicate how each of the six output signals are produced by completing the table below. Input signal System Output signal 3 3 SYSTEM FREQUENCY RESPONSE SYSTEM FREQUENCY RESPONSE.8.8.6.6.4.4.. π.5 π.5 π π ω π.5 π.5 π π ω 45

INPUT SIGNAL.5.5 3 4 5 6 7 8 INPUT SIGNAL.5.5 3 4 5 6 7 8 INPUT SIGNAL 3.5.5 3 4 5 6 7 8 46

OUTPUT SIGNAL.5.5 3 4 5 6 7 8 OUTPUT SIGNAL.5.5 3 4 5 6 7 8 OUTPUT SIGNAL 3.5.5 3 4 5 6 7 8 OUTPUT SIGNAL 4.5.5 3 4 5 6 7 8 47

OUTPUT SIGNAL 5.5.5 3 4 5 6 7 8 OUTPUT SIGNAL 6.5.5 3 4 5 6 7 8.8.8 Each of the two discrete-time signals below are processed with each of two LTI systems. The frequency response magnitude H f (!) are shown below. Indicate how each of the four output signals are produced by completing the table below. Input signal System Output signal INPUT SIGNAL.5.5 3 4 5 6 INPUT SIGNAL.5.5 3 4 5 6 48

SYSTEM FREQUENCY RESPONSE SYSTEM FREQUENCY RESPONSE.8.8.6.6.4.4.. π.5 π.5 π π ω π.5 π.5 π π ω OUTPUT SIGNAL.5.5 3 4 5 6 OUTPUT SIGNAL.5.5 3 4 5 6 OUTPUT SIGNAL 3.5.5 3 4 5 6 OUTPUT SIGNAL 4.5.5 3 4 5 6 49

.8.9 Each of the two discrete-time signals below are processed with each of two LTI systems. The frequency response magnitude H f (!) are shown below. Indicate how each of the four output signals are produced by completing the table below. Input signal is given by: cos(.9 n) u(n 4) Input signal is given by:.75 cos(.7 n) u(n 4) +.5 ( ) n u(n 4) Input signal System Output signal INPUT SIGNAL 3 4 5 6 7 8 INPUT SIGNAL 3 4 5 6 7 8 SYSTEM FREQUENCY RESPONSE SYSTEM FREQUENCY RESPONSE.8.8.6.6.4.4.. π.5 π.5 π π ω π.5 π.5 π π ω 5

OUTPUT SIGNAL 3 4 5 6 7 8 OUTPUT SIGNAL 3 4 5 6 7 8 OUTPUT SIGNAL 3 3 4 5 6 7 8 OUTPUT SIGNAL 4 3 4 5 6 7 8.8. Each of the two discrete-time signals below are processed with each of two LTI systems. The frequency response magnitude H f (!) are shown below. Indicate how each of the four output signals are produced by completing the table below. Input signal is given by: cos(.95 n) u(n 4) Input signal is given by:.5 cos(.7 n) u(n 4) +.75 ( ) n u(n 4) INPUT SIGNAL 3 4 5 6 7 8 INPUT SIGNAL 3 4 5 6 7 8 SYSTEM FREQUENCY RESPONSE SYSTEM FREQUENCY RESPONSE.8.8.6.6.4.4.. π.5 π.5 π π ω π.5 π.5 π π ω 5

OUTPUT SIGNAL 3 4 5 6 7 8 OUTPUT SIGNAL 3 4 5 6 7 8 OUTPUT SIGNAL 3 3 4 5 6 7 8 OUTPUT SIGNAL 4 3 4 5 6 7 8 Input signal System Output signal.8. Each of the two discrete-time signals below are processed with each of two LTI systems. The frequency response magnitude H f (!) are shown below. Indicate how each of the four output signals are produced by completing the table below. Input signal : cos(.5 n) u(n 4) Input signal :.75 cos(. n) u(n 4) +.5 cos(.5 n) u(n 4) Input signal System Output signal INPUT SIGNAL 3 4 5 6 7 8 9 INPUT SIGNAL 3 4 5 6 7 8 9 5

SYSTEM FREQUENCY RESPONSE SYSTEM FREQUENCY RESPONSE.8.8.6.6.4.4.. π.5 π.5 π π ω π.5 π.5 π π ω OUTPUT SIGNAL 3 4 5 6 7 8 9 OUTPUT SIGNAL 3 4 5 6 7 8 9 OUTPUT SIGNAL 3 3 4 5 6 7 8 9 OUTPUT SIGNAL 4 3 4 5 6 7 8 9.8. The diagrams on the following pages show the frequency responses magnitudes H f (!) and pole-zero diagrams of 8 causal discrete-time LTI systems. But the diagrams are out of order. Match each diagram by filling out the following table. You should do this problem without using MATLAB or any other computational tools. In the pole-zero diagrams, the zeros are shown with o and the poles are shown by x. FREQUENCY RESPONSE 3 4 5 6 7 8 POLE-ZERO DIAGRAM 53

OrderMatching/Match FREQUENCY RESPONSE 4 FREQUENCY RESPONSE.5 3.5.5.5 ω/π.5.5 ω/π 3 FREQUENCY RESPONSE 3 FREQUENCY RESPONSE 4.5.5 8 6 4.5.5.5 ω/π.5.5 ω/π 4 FREQUENCY RESPONSE 5 6 FREQUENCY RESPONSE 6 3 5 4 3.5.5 ω/π.5.5 ω/π.4 FREQUENCY RESPONSE 7 7 FREQUENCY RESPONSE 8. 6 5.8 4.6 3.4..5.5 ω/π.5.5 ω/π 54

ZERO POLE DIAGRAM ZERO POLE DIAGRAM.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 3 ZERO POLE DIAGRAM 4.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 5 ZERO POLE DIAGRAM 6.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 7 ZERO POLE DIAGRAM 8.5.5.5.5.5.5.5.5 55

.8.3 The diagrams on the following pages show the frequency responses and pole-zero diagrams of 6 causal discretetime LTI systems. But the diagrams are out of order. Match each diagram by filling out the following table. You should do this problem without using MATLAB or any other computational tools. In the pole-zero diagrams, the zeros are shown with o and the poles are shown by x. FREQUENCY RESPONSE 3 4 5 6 POLE-ZERO DIAGRAM FREQUENCY RESPONSE FREQUENCY RESPONSE.8.6.4..5.5 ω/π.8.6.4..5.5 ω/π. FREQUENCY RESPONSE 3. FREQUENCY RESPONSE 4.8.8.6.6.4.4...5.5 ω/π.5.5 ω/π. FREQUENCY RESPONSE 5. FREQUENCY RESPONSE 6.8.8.6.6.4.4...5.5 ω/π.5.5 ω/π 56

ZERO POLE DIAGRAM ZERO POLE DIAGRAM.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 3 ZERO POLE DIAGRAM 4.5.5.5.5.5.5.5.5 ZERO POLE DIAGRAM 5 ZERO POLE DIAGRAM 6.5.5.5.5.5.5.5.5.8.4 The frequency responses and pole-zero diagrams of eight discrete-time LTI systems are illustrated below. But they are out of order. Match them to each other by filling out the table. FREQUENCY RESPONSE 3 4 5 6 7 8 POLE-ZERO DIAGRAM 57

4 Frequency Response.5 Frequency Response 3.5.5 π.5 π.5 π π ω.5 Frequency Response 3 π.5 π.5 π π ω.5 Frequency Response 4.5.5 π.5 π.5 π π ω 3 Frequency Response 5 π.5 π.5 π π ω 3 Frequency Response 7 π.5 π.5 π π ω..8.6.4. π.5 π.5 π π ω.5 Frequency Response 6 Frequency Response 8.5 π.5 π.5 π π ω π.5 π.5 π π ω 58

ZERO POLE DIAGRAM ZERO POLE DIAGRAM.5.5.5.5 ZERO POLE DIAGRAM 3.5.5 ZERO POLE DIAGRAM 4.5.5 ZERO POLE DIAGRAM 5.5.5 ZERO POLE DIAGRAM 6.5.5 ZERO POLE DIAGRAM 7.5.5 ZERO POLE DIAGRAM 8.5.5 59

.8.5 The pole-zero diagrams of eight discrete-time systems are illustrated below. The frequency response H f (!) of each system is also shown, but in a di erent order. Match each frequency response to its pole-zero diagram by filling out the table. POLE ZERO DIAGRAM POLE ZERO DIAGRAM Imaginary Part.5.5 4 Imaginary Part.5.5 4.5.5 Real Part.5.5 Real Part POLE ZERO DIAGRAM 3 POLE ZERO DIAGRAM 4 Imaginary Part.5.5 Imaginary Part.5.5.5.5 Real Part.5.5 Real Part POLE ZERO DIAGRAM 5 POLE ZERO DIAGRAM 6 Imaginary Part.5.5 Imaginary Part.5.5.5.5 Real Part.5.5 Real Part POLE ZERO DIAGRAM 7 POLE ZERO DIAGRAM 8 Imaginary Part.5.5 Imaginary Part.5.5.5.5 Real Part.5.5 Real Part 6

FREQUENCY RESPONSE FREQUENCY RESPONSE.8.6.4. π.5 π.5 π π.8.6.4. π.5 π.5 π π FREQUENCY RESPONSE 3. FREQUENCY RESPONSE 4.8.6.4. π.5 π.5 π π.8.6.4. π.5 π.5 π π. FREQUENCY RESPONSE 5. FREQUENCY RESPONSE 6.8.8.6.6.4.4.. π.5 π.5 π π π.5 π.5 π π FREQUENCY RESPONSE 7. FREQUENCY RESPONSE 8.8.6.4. π.5 π.5 π π.8.6.4. π.5 π.5 π π POLE-ZERO DIAGRAM 3 4 5 6 7 8 FREQUENCY RESPONSE.9 Summary Problems.9. The impulse response of an LTI discrete-time system is given by h(n) = (n)+ (n ). 6

(a) Find the transfer function of the system. (b) Find the di erence equation with which the system can be implemented. (c) Sketch the pole/zero diagram of the system. (d) What is the dc gain of the system? (In other words, what is H f ()?). (e) Based on the pole/zero diagram sketch the frequency response magnitude H f (!). Mark the value at! = and! =. (f) Sketch the output of the system when the input x(n) is the constant unity signal, x(n) =. (g) Sketch the output of the system when the input x(n) is the unit step signal, x(n) =u(n). (h) Find a formula for the output signal when the input signal is n x(n) = u(n)..9. A causal LTI system is implemented using the di erence equation y(n) =x(n)+ 9 4 y(n ) y(n ) 4 (a) What is the transfer function H(z) of this system? (b) What is the impulse response h(n) of this system? (c) Use the MATLAB command filter to numerically verify the correctness of your formula for h(n). (Use this command to numerically compute the first few values of h(n) from the di erence equation, and compare with the formula.).9.3 A causal discrete-time LTI system is implemented using the di erence equation y(n) = x(n) +.5 x(n ) +. y(n ) where x is the input signal, and y the output signal. (a) Sketch the pole/zero diagram of the system. (b) Find the dc gain of the system. (c) Find the value of the frequency response at! =. (d) Based on parts (a),(b),(c), roughly sketch the frequency response magnitude of the system. (e) Find the form of the output signal when the input signal is n x(n) = u(n). 3 You do not need to compute the constants produced by the partial fraction expansion procedure (PFA) you can just leave them as constants: A, B, etc. Be as accurate as you can be in your answer without actually going through the arithmetic of the PFA..9.4 For the causal discrete-time LTI system implemented using the di erence equation y(n) = x(n) +.5 x(n ) +.5 y(n ), (a) Sketch the pole/zero diagram. (b) Find the dc gain of the system. (c) Find the output signal produced by the input signal x(n) =.5. (d) Find the value of the frequency response at! =. (e) Find the steady-state output signal produced by the input signal x(n) =.6( output signal is the output signal after the transients have died out.) ) n u(n). (The steady-state 6

(f) Validate your answers using Matlab..9.5 A causal discrete-time LTI system is implemented using the di erence equation y(n) = x(n) x(n ) +.8 y(n ) where x is the input signal, and y the output signal. (a) Sketch the pole/zero diagram of the system. (b) Find the dc gain of the system. (c) Find the value of the frequency response at! =. (d) Based on parts (a),(b),(c), roughly sketch the frequency response magnitude H f (!) of the system..9.6 The impulse response of a discrete-time LTI system is given by.5 for apple n apple 3 h(n) = for other values of n. Make an accurate sketch of the output of the system when the input signal is for apple n apple 3 x(n) = for other values of n. You should do this problem with out using MATLAB, etc..9.7 If a discrete-time LTI system has the transfer function H(z) = 5, then what di erence equation implements this system? Classify this system as memoryless/with memory..9.8 First order di erence system: A discrete-time LTI system is implemented using the di erence equation y(n) =.5 x(n).5 x(n ). (a) What is the transfer function H(z) of the system? (b) What is the impulse response h(n) of the system? (c) What is the frequency response H f (!) of the system? (d) Accurately sketch the frequency response magnitude H f (!). (e) Find the output y(n) when the input signal is the step signal u(n). (f) Sketch the pole-zero diagram of the system. (g) Is the system a low-pass filter, high-pass filter, or neither?.9.9 A causal discrete-time LTI system is implemented with the di erence equation y(n) =3x(n)+ 3 y(n ). (a) Find the output signal when the input signal is x(n) = 3 () n u(n). Show your work. (b) Is the system stable or unstable? (c) Sketch the pole-zero diagram of this system..9. A causal discrete-time LTI system is described by the equation y(n) = 3 x(n)+ 3 x(n ) + x(n ) 3 where x is the input signal, and y the output signal. 63

(a) Sketch the impulse response of the system. (b) What is the dc gain of the system? (Find H f ().) (c) Sketch the output of the system when the input x(n) is the constant unity signal, x(n) =. (d) Sketch the output of the system when the input x(n) is the unit step signal, x(n) =u(n). (e) Find the value of the frequency response at! =. (FindH f ( ).) (f) Find the output of the system produced by the input x(n) =( ) n. (g) How many zeros does the transfer function H(z) have? (h) Find the value of the frequency response at! = 3.(FindHf ( /3).) (i) Find the poles and zeros of H(z); and sketch the pole/zero diagram. (j) Find the output of the system produced by the input x(n) = cos 3 n..9. Two-Point Moving Average. A discrete-time LTI system has impulse response h(n) =.5 (n)+.5 (n ). (a) Sketch the impulse response h(n). (b) What di erence equation implements this system? (c) Sketch the pole-zero diagram of this system. (d) Find the frequency resposnse H f (!). Find simple expressions for H f (!) and \H f (!) and sketch them. (e) Is this a lowpass, highpass, or bandpass filter? (f) Find the output signal y(n) when the input signal is x(n) =u(n). Also, x(n) = cos(! o n) u(n) for what value of! o? (g) Find the output signal y(n) when the input signal is x(n) =( Also, x(n) = cos(! o n) u(n) for what value of! o?.9. A causal discrete-time LTI system is described by the equation ) n u(n). y(n) = 4 3X x(n k) k= where x is the input signal, and y the output signal. (a) Sketch the impulse response of the system. (b) How many zeros does the transfer function H(z) have? (c) What is the dc gain of the system? (Find H f ().) (d) Find the value of the frequency response at! =.5. (FindH f (.5 ).) (e) Find the value of the frequency response at! =. (FindH f ( ).) (f) Based on (b), (d) and (e), find the zeros of H(z); and sketch the pole/zero diagram. (g) Based on the pole/zero diagram, sketch the frequency response magnitude H f (!)..9.3 Four-Point Moving Average. A discrete-time LTI system has impulse response h(n) =.5 (n) +.5 (n ) +.5 (n ) +.5 (n 3) (a) Sketch h(n). (b) What di erence equation implements this system? (c) Sketch the pole-zero diagram of this system. (d) Find the frequency resposnse H f (!). Find simple expressions for H f (!) and \H f (!) and sketch them. (e) Is this a lowpass, highpass, or bandpass filter? 64