Discrete-time signals and systems

Similar documents
APPLIED SIGNAL PROCESSING

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Z Transform (Part - II)

Lecture 19 IIR Filters

EEL3135: Homework #4

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

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Analog vs. discrete signals

Digital Signal Processing Lecture 4

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

Digital Signal Processing Lecture 5

Review of Fundamentals of Digital Signal Processing

Lecture 11 FIR Filters

EE 521: Instrumentation and Measurements

ECE4270 Fundamentals of DSP Lecture 20. Fixed-Point Arithmetic in FIR and IIR Filters (part I) Overview of Lecture. Overflow. FIR Digital Filter

E : Lecture 1 Introduction

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

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

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Module 4 : Laplace and Z Transform Problem Set 4

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

ESE 531: Digital Signal Processing

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

! Circular Convolution. " Linear convolution with circular convolution. ! Discrete Fourier Transform. " Linear convolution through circular

Review of Fundamentals of Digital Signal Processing

Lecture 7 Discrete Systems

Digital Signal Processing Lecture 3 - Discrete-Time Systems

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

Ch. 7: Z-transform Reading

EE 225D LECTURE ON DIGITAL FILTERS. University of California Berkeley

ESE 531: Digital Signal Processing

Discrete Time Systems

Review of Discrete-Time System

ECE 308 Discrete-Time Signals and Systems

Chap 2. Discrete-Time Signals and Systems

EE482: Digital Signal Processing Applications

Introduction to Digital Signal Processing

Discrete Time Systems

Cosc 3451 Signals and Systems. What is a system? Systems Terminology and Properties of Systems

Responses of Digital Filters Chapter Intended Learning Outcomes:

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

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

Discrete-time first-order systems

EE-210. Signals and Systems Homework 7 Solutions

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

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Digital Signal Processing. Lecture Notes and Exam Questions DRAFT

DSP-I DSP-I DSP-I DSP-I

Lecture 5 - Assembly Programming(II), Intro to Digital Filters

ELEG 305: Digital Signal Processing

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

Chapter Intended Learning Outcomes: (i) Understanding the relationship between transform and the Fourier transform for discrete-time signals

Solutions. Number of Problems: 10

UNIT 1. SIGNALS AND SYSTEM

Digital Signal Processing. Midterm 1 Solution

Discrete-Time Systems

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Module 3. Convolution. Aim

Lecture 18: Stability

(i) Represent discrete-time signals using transform. (ii) Understand the relationship between transform and discrete-time Fourier transform

# 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.

University Question Paper Solution

y[n] = = h[k]x[n k] h[k]z n k k= 0 h[k]z k ) = H(z)z n h[k]z h (7.1)

EE123 Digital Signal Processing. M. Lustig, EECS UC Berkeley

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

Chapter 7: The z-transform

ELEG 305: Digital Signal Processing

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

III. Time Domain Analysis of systems

Introduction to DSP Time Domain Representation of Signals and Systems

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

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

ECE 413 Digital Signal Processing Midterm Exam, Spring Instructions:

Transform analysis of LTI systems Oppenheim and Schafer, Second edition pp For LTI systems we can write

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 3: DISCRETE TIME SYSTEM IN TIME DOMAIN

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

2. Typical Discrete-Time Systems All-Pass Systems (5.5) 2.2. Minimum-Phase Systems (5.6) 2.3. Generalized Linear-Phase Systems (5.

Discrete-Time Fourier Transform (DTFT)

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

Discrete Time Fourier Transform

Detailed Solutions to Exercises

Solutions. Number of Problems: 10

Discrete-Time David Johns and Ken Martin University of Toronto

Digital Signal Processing:

How to manipulate Frequencies in Discrete-time Domain? Two Main Approaches

Final Exam January 31, Solutions

ECE 301 Fall 2011 Division 1 Homework 5 Solutions

Analog LTI system Digital LTI system

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

ELEG 305: Digital Signal Processing

ECE-314 Fall 2012 Review Questions for Midterm Examination II

Need for transformation?

EE123 Digital Signal Processing

The Convolution Sum for Discrete-Time LTI Systems

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

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

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

Transcription:

Discrete-time signals and systems 1

DISCRETE-TIME DYNAMICAL SYSTEMS x(t) G y(t) Linear system: Output y(n) is a linear function of the inputs sequence: y(n) = k= h(k)x(n k) h(k): impulse response of the system: Impulse x(0) = 1, x(n) = 0, n 0 gives y(n) = h(n), all n 2

Some terminology: Linear Time Invariant (LTI) System: Impulse response from input x(n k) to output y(n) does not depend on time n, but only on k Causal system: Output y(n) does not depend on future inputs, but only on present and past inputs x(n), x(n 1),..., (i.e., h(k) = 0, k < 0). y(n) = h(0)x(n) + h(1)x(n 1) + 3

Any process which transform a signal {x(n)} to another signal {y(n)} is a discrete-time system (for example, an audio signal is transformed by reflections, etc). Often a (linear) discrete-time system is designed in order to process a signal, for example to remove noise. Then we call such a system a digital filter. 4

DIGITAL FILTER TYPES FIR (Finite Impulse Response) filters - have finite memory; output depends only on a finite number of inputs - modeled by (weighted) moving average models y(n) = h(0)x(n) + h(1)x(n 1) + + h(n 1)x(n + 1 N) IIR (Infinite Impulse Response) filters - have infinite memory; output depends on an infinite number of (past) inputs - modeled by difference equations y(n) + a 1 y(n 1) + + a N y(n N) = = b 0 x(n) + b 1 x(n 1) + + b M x(n M) 5

Calculation of filter output FIR filters: The operation y(n) = h(0)x(n)+h(1)x(n 1)+ +h(n 1)x(n+1 N), n = 0, 1, 2,..., M between the impulse response sequence {h(k)} = {h(0), h(1),..., h(n 1)} and the input sequence {x(n)} = {x(0), x(1),..., x(m 1)} to give the output sequence {y(n)} = {y(0), y(1),...} is called convolution, and is often denoted as {y(n)} = {h(k)} {x(n)} Computational burden: calculation of output sequence requires N M flops 6

Efficient software for DSPs exist In Matlab: y = conv(h,x) or y = filter(h,1,x) (cf. below) 7

IMPORTANT PROPERTY: Convolution corresponds to polynomial multiplication: If we define the polynomials then we see that Ŷ (z) = y(0) + y(1)z 1 + + y(m 1)z M+1 ˆX(z) = x(0) + x(1)z 1 + + x(m 1)z M+1 H(z) = h(0) + h(1)z 1 + + h(n 1)z N+1 H(z) ˆX(z) ( ) = h(0)x(0) + h(0)x(1) + h(1)x(0) z 1 + ( ) + h(0)x(n) + h(1)x(n 1) + + h(n 1)x(n + 1 N) z n + = y(0) + y(1)z 1 + + y(m 1)z M+1 = Ŷ (z) 8

the convolution {y(n)} = {h(k)} {x(n)} can be represented as polynomial multiplication Ŷ (z) = H(z) ˆX(z) ˆX(z): z-transform of sequence {x(n)} Ŷ (z): z-transform of sequence {y(n)} H(z): transfer function of the system having impulse response h(0), h(1),... 9

Relation between convolution and polynomial multiplication leads to an efficient implementation of convolution FFT CONVOLUTION ( high-speed convolution ) The Fourier transform X(k) of {x(n)} is precisely a polynomial in z 1, with z = e j2πk/n : Recall the Fourier transform of {x(n)}: X(k) = x(0) + x(1)e j2πk/n + + x(n 1)e j2π(n 1)k/N = x(0) + x(1) (e j2πk/n) 1 + + x(n 1) (e j2πk/n) (N 1) Comparison with ˆX(z) shows that: X(k) = ˆX(z k ), z k = e j2πk/n Hence X(k) evaluates ˆX(z) at N points z k, k = 0, 1,..., N 1 10

Hence we can compute the convolution as follows: 1. Compute FFT X(k) of sequence {x(n)}. Then X(k) = ˆX(z k ), z k = e j2πk/n. 2. Compute FFT H(k) of sequence {h(n)}. Use zero padding to obtain sequences of the same length. Then H(k) = H(z k ), z k = e j2πk/n. 3. Compute Y (k) as the element-wise product Y (k) = H(k)X(k). Then Y (k) = Ŷ (z k), z k = e j2πk/n. 4. Compute inverse Fourier transform {y(n)} of {Y (k)}. Then {y(n)} is the convolution {y(n)} = {h(k)} {x(n)}

TRANSFER FUNCTIONS x(t) G y(t) In the z-transform domain, we have the simple relation Ŷ (z) = H(z) ˆX(z) where H(z) = h(0) + h(1)z 1 + 12

GENERAL LINEAR DISCRETE-TIME DYNAMICAL SYSTEMS General LTI systems can be described by a difference equation: y(n) + a 1 y(n 1) + + a N y(n N) = = b 0 x(n) + b 1 x(n 1) + + b M x(n M) Discrete-time counterpart of differential equations. Left-hand side is a convolution between the sequence 1, a 1,..., a N {y(n)}, or in the z-transform: and ( 1 + a1 z 1 + + a N z N) Ŷ (z) Right-hand side is a convolution between the sequence b 0,..., b M {x(n)}, or in the z-transform: and ( b0 + b 1 z 1 + + b M z M) ˆX(z) 13

( 1 + a1 z 1 + + a N z N) Ŷ (z) = ( b 0 + b 1 z 1 + + b M z M) ˆX(z) or, Ŷ (z) = b 0 + b 1 z 1 + + b M z M ˆX(z) 1 + a 1 z 1 + + a N z N Hence the system has transfer function Ŷ (z) = H(z) ˆX(z), H(z) = b 0 + b 1 z 1 + + b M z M 1 + a 1 z 1 + + a N z N 14

STABILITY Example: First-order system y(n) + ay(n 1) = bu(n) For the input {u(n)} = {1, 0, 0, 0,...} we have: y(0) = b (assuming y( 1) = 0) y(1) = ay(0) + bu(1) = ab y(2) = ay(1) + bu(2) = a 2 b. y(n) = ( a) n b y(n) 0 if as t if a < 1 system is stable y(n) as t if a > 1 system is unstable 15

Characterization of stability in terms of system transfer function: H(z) = b 1 az 1 A value p for which H(p) becomes infinite is called a pole of H(z). Here, p is the solution of 1 ap 1 = 0 p = a. System is stable if its pole p = a has absolute value p < 1 The results generalizes to higher-order systems: A linear discrete-time dynamical system with transfer function H(z) = b 0 + b 1 z 1 + + b M z M 1 + a 1 z 1 + + a N z N is stable if and only if all its poles, i.e. the solutions p i of the equation 1 + a 1 z 1 + + a N z N = 0 satisfy p i < 1 (i.e., they are inside the unit circle in the complex plane). 16

INTERCONNECTED SYSTEMS Using transfer functions, it is easy to analyze connected systems Example: Series connection. x(n) H 1 y 1 (n) H 2 y(n) Introducing z-transforms ˆX(z), Ŷ 1 (z), Ŷ (z) and transfer functions H 1 (z), H 2 (z) gives: Ŷ (z) = H 2 (z)ŷ1(z) = H 2 (z)h 1 (z) ˆX(z) = H(z) ˆX(z) Series connection has impulse response function {h(k)} with z-transform H(z) = H 2 (z)h 1 (z). But this is equal to the convolution {h(k)} = {h 2 (k)} {h 1 (k)}. Hence the impulse response of the series connection is obtained by a convolution of the individual impulse responses 17

Example: Time shift. Consider a time shift Then: y(n) = x(n l) Ŷ (z) = z l ˆX(z) In other words, if the signal {x(n)} has z-transform ˆX(z), then the timeshifted signal {x(n l)} has z-transform z l ˆX(z). z is a so-called shift operator. 18

Example: Feedback connection. Determine the output {y(n)} as function of the input {x(n)} in the following feedback connection: {x(n)} + {e(n)} G {y(n)} {r(n)} K where the system G is described by the difference equation y(n) 0.8y(n 1) = e(n) the K is described by r(n) 0.5r(n 1) = y(n 1) + 0.1y(n 2) 19

SOLUTION OF DIFFERENCE EQUATIONS BY THE Z-TRANSFORM In analogy with the the Laplace transform for differential equations, tabulated z-transforms can be applied to solve difference equations as follows: Problem: Determine the solution {y(n)} of the difference equation y(n) + a 1 y(n 1) + + a N y(n N) = for a given input sequence {x(n)}. = b 0 x(n) + b 1 x(n 1) + + b M x(n M) Solution: 1. Write the difference equation in the z-transform plane: Ŷ (z) = b 0 + b 1 z 1 + + b M z M ˆX(z) 1 + a 1 z 1 + + a N z N where ˆX(z) is the z-transform of the input sequence {x(n)}. 2. Solve for Ŷ (z) and find the corresponding sequence {y(n)} whose transform Ŷ (z) is. 20

The calculation of ˆX(z) in stage 1 and of sequence {y(n)} in stage 2 is facilitated by tabulated z-transforms for several common signals (Table 7.1). Example: z-transform of a signal The exponentially decaying signal x(n) = { 0, n < 0 a n, n 0 has z-transform ˆX(z) = x(n)z n = n=0 a n z n n=0 = 1 + az 1 + a 2 z 2 + = 1 + az 1 + (az 1 ) 2 + = 1 1 az 1 = z z a Compare with Table 7.1, line 5, with c = 1, e α = a. 21

Example: Solution of difference equation Consider the difference equation y(n) 0.75y(n 1) = x(n 1) with x(n) = { 0, n < 0 ( 0.5) n, n 0 Then: and (cf. above) Ŷ (z) = ˆX(z) = z 1 ˆX(z) 1 0.75z 1 1 1 + 0.5z 1 22

Hence, z 1 Ŷ (z) = 1 0.75z 1 A partial fraction expansion gives 1 1 + 0.5z 1 Ŷ (z) = 4/5 1 0.75z 1 4/5 1 + 0.5z 1 or z Ŷ (z) = 4 5 ( z z 0.75 z ) z + 0.5 By Table 7.1, z a is the z-transform of the sequence {an }. Hence the z-transform of the sequence Ŷ (z) is y(n) = 4 5 [0.75n ( 0.5) n ] which is the solution of the difference equation. 23