Discrete-time first-order systems

Similar documents
# 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 signals and systems

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

Responses of Digital Filters Chapter Intended Learning Outcomes:

Lecture 19 IIR Filters

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

ELEG 305: Digital Signal Processing

Stability Condition in Terms of the Pole Locations

Digital Signal Processing Lecture 8 - Filter Design - IIR

Design of IIR filters

Z Transform (Part - II)

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

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

EECE 301 Signals & Systems Prof. Mark Fowler

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

Computer Engineering 4TL4: Digital Signal Processing

Signals and Systems Lecture 8: Z Transform

Chapter 7: IIR Filter Design Techniques

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) =

Linear Convolution Using FFT

Filter Analysis and Design

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

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

Discrete Time Systems

Lecture 7 Discrete Systems

Discrete-Time David Johns and Ken Martin University of Toronto

Digital Control & Digital Filters. Lectures 1 & 2

Recursive, Infinite Impulse Response (IIR) Digital Filters:

Review of Fundamentals of Digital Signal Processing

Digital Signal Processing. Midterm 1 Solution

Review of Fundamentals of Digital Signal Processing

Ch. 7: Z-transform Reading

EE480.3 Digital Control Systems. Part 2. z-transform

1. Z-transform: Initial value theorem for causal signal. = u(0) + u(1)z 1 + u(2)z 2 +

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

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

EE 521: Instrumentation and Measurements

butter butter Purpose Syntax Description Digital Domain Analog Domain

Fourier Series Representation of

VI. Z Transform and DT System Analysis

Introduction to Digital Signal Processing

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

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 )

Stability. X(s) Y(s) = (s + 2) 2 (s 2) System has 2 poles: points where Y(s) -> at s = +2 and s = -2. Y(s) 8X(s) G 1 G 2

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

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

Chapter 5 Frequency Domain Analysis of Systems

Tunable IIR Digital Filters

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

The z-transform Part 2

The Z-Transform. Fall 2012, EE123 Digital Signal Processing. Eigen Functions of LTI System. Eigen Functions of LTI System

3 Fourier Series Representation of Periodic Signals

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation

ECE503: Digital Signal Processing Lecture 5

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

EEL3135: Homework #4

APPLIED SIGNAL PROCESSING

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

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

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)

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

CMPT 889: Lecture 5 Filters

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

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

Digital Filters Ying Sun

/ (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

EE102B Signal Processing and Linear Systems II. Solutions to Problem Set Nine Spring Quarter

Filter structures ELEC-E5410

A.1 THE SAMPLED TIME DOMAIN AND THE Z TRANSFORM. 0 δ(t)dt = 1, (A.1) δ(t)dt =

6.003: Signals and Systems

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

Signal Analysis, Systems, Transforms

Discrete-time Signals and Systems in

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Fall Solutions for Problem Set 2

Module 4 : Laplace and Z Transform Problem Set 4

z-transform Chapter 6

Very useful for designing and analyzing signal processing systems

SIGNALS AND SYSTEMS LABORATORY 4: Polynomials, Laplace Transforms and Analog Filters in MATLAB

2.161 Signal Processing: Continuous and Discrete Fall 2008

Analog vs. discrete signals

ECE503: Digital Signal Processing Lecture 4

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

EE482: Digital Signal Processing Applications

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

Chapter 5 Frequency Domain Analysis of Systems

23 Mapping Continuous-Time Filters to Discrete-Time Filters

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

Discrete Time Systems

EE Experiment 11 The Laplace Transform and Control System Characteristics

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

LINEAR-PHASE FIR FILTERS DESIGN

DESIGN OF CMOS ANALOG INTEGRATED CIRCUITS

EC Signals and Systems

Need for transformation?

We have shown earlier that the 1st-order lowpass transfer function

Problem Weight Score Total 100

ECE-S Introduction to Digital Signal Processing Lecture 4 Part A The Z-Transform and LTI Systems

INF3440/INF4440. Design of digital filters

Transcription:

Discrete-time first-order systems 1 Start with the continuous-time system ẏ(t) =ay(t)+bu(t), y(0) Zero-order hold input u(t) =u(nt ), nt apple t<(n + 1)T u(t) is held constant for the sample period T Solution y(t) = e at y(0) + y(t ) = e at y(0) + Z t e a(t 0 Z T e a(t 0 y(t ) = Ay(0) + Bu(0) A = e at, B = Z T 0 e a(t ) bd = ) bu( ) d ) bd u(0) Z T e a 0 bd = T, d = d =0, = T = T, =0

Discrete-time first-order systems II 2 Sampled values of zero-order-held continuous-time Zsystem T y(t ) = Ay(0) + Bu(0) A = e at, B = e a bd y[1] = Ay[0] + Bu[0] 0 General update of samples y[n + 1] = Ay[n]+Bu[n] This is a first-order difference equation Solution y[1] = Ay[0] + Bu[0] y[2] = Ay[1] + Bu[1] = A 2 y[0] + ABu[0] + Bu[1] y[3] = Ay[2] + Bu[2] = A 3 y[0] + A 2 Bu[0] + ABu[1] + Bu[2]. =. y[n] = A n y[0] + nx 1 k=0 A n k 1 Bu[k] Easy!!

Discrete-time higher-order systems 3 Second-order system (Example 2.6, p. 60) y[n] 1.5y[n 1] + y[n 2] = 2u[n 2] Initial conditions y[ 2] = 2, y[ 1] = 1 input u[n] = 1[n] Solution y[n] = 1.5y[n 1] y[n 2] + 2u[n 2] y[0] = 1.5y[ 1] y[ 2] + 2u[ 2] = 1.5 1 1 2+2 0= 0.5 y[1] = 1.5y[0] y[ 1] + 2u[ 1] = 1.5 ( 0.5) 1 1+2 0= 1.75 y[2] = 1.5y[1] y[0] + 2u[0] = 1.5 ( 1.75) 1 ( 0.5) + 2 1=.125 y[3] = 1.5y[2] y[1] + 2u[1] = 1.5 ( 0.125) 1 ( 1.75) + 2 1=3.5625

Higher-order discrete-time systems 4 Nth-order linear system y[n]+a 1 y[n 1] + a 2 y[n 2] + + a N y[n N] =b 0 u[n]+b 1 u[n 1] + + b M u[n M] y[n] = a 1 y[n 1] a 2 y[n 2] a N y[n N] +b 0 u[n]+b 1 u[n 1] + + b M u[n M] Solution via the recursion/substitution Easy to program Clearly we need N initial conditions y[-1],, y[-n] The solution consists of two parts that due to initial conditions only zero-input response that due to the input only zero-state response

5 Discrete impulse response, convolution Discrete impulse signal Zero initial conditions Output is the impulse response General inputs Response to Response to u[n] = k= 1 u k [k n] y[n] =h[n] u k [k n] is u k h[k n] u[n] is u k h[k n] = 4 Discrete u[n] h[n] Convolution k= 1 [n] = ( 1, if n =0 0, else

6 Discrete step response Discrete step function 1[n] = Relationship with discrete impulse ( 1, if n 0 0, else 1[n] = Step response is the integral of the impulse response nx k= 1 [k] s[n] = 1[n] h[n] = k= 1 1[n k]h[k] = ( Pn k=0 h[k], n 0 0, else

Z-transforms 7 Start by considering the Laplace transform of a one-sided sampled-data signal Define L [x s (t)] = = Z 1 0 x s (t)e st dt = x n e snt Z 1 z = e st then Z (x[n]) = X(z) = 4 This is the z-transform of the sequence {x[n]} It is analogous to the Laplace transform in continuous time But it is much easier to work with 0 e st 1 X x n (t nt ) dt x[n]z n

Some z-transforms 8 Discrete impulse sequence Z ( [n]) = [n]z n =1 Delayed impulse Z ( [n k]) = [n k]z n = z k General delayed signal Z (x[n k]) = x[n k]z n = n=k Multiplication of the z-transform by z -1 is a delay operation by one sample time We can extend the z-transform to two-sided signals easily There is still a convergence question m=0 x[m]z m k = z k X(z)

9 Z-transform of a discrete step Z (1[n]) = This uses the geometric series formula It converges if z > 1 We can extend this to a geometric series Z(a n 1[n]) = a n z n 1 = 1 az 1 = z z This converges if 1z n =1+z 1 + z 2 + = k=0 z > a 1 1 z 1 = z z 1 x[n] =a n 1[n] a

Z-transform and convolution 10 Z(x[n] v[n]) = X(z)V (z) Z(x[n] v[n]) = = = = x[k]v[n k]z n k=0 k=0 x[k]z k v[n k]z x[k]z k k=0 x[k]z k X 1 m= k X 1 k=0 m=0 v[m]z m (n k) v[m]z m = X(z)V (z)

Z-transforms 11 Recall the relationship between Laplace and Z-transforms z = e st Laplace transforms of signal which decay have poles in Re(s) < 0 Z-transforms of sequences which decay have poles in z < 1 Recall the first-order sampled system ẏ(t) =ay(t)+bu(t), y(0) Its discrete variant was with A = e at, B = The continuous mode/pole is at s=a y[n + 1] = Ay[n]+Bu[n] Z T 0 e a bd The discrete mode/pole is at z=a=e at Note that for any T>0 e at < 1, Re(a) < 0

Z-transforms and delays 12 Original sequence x[n] ={x 0,x 1,x 2,x 3,...} Z-transform X(z) = x[n]z n = x n z n Delayed/shifted sequence X s (z) = = x s [n] ={0,x 0,x 1,x 2,...} x s [n]z n = x s nz n X 1 x n 1 z n = z 1 x n z n n=1 = z 1 X(z) Recall L [f(t T )1(t T )] = e st F (s) z = e st

Discrete system transfer functions 13 Example ODE Solve by recursion with initial conditions Let s take the z-transform y[n]z n = 0.1 y[n] + 0.1y[n 1] 0.72y[n 2] = 0.1u[n 1] + 0.9u[n 2] y[n] = 0.1y[n 1] + 0.72y[n 2] + 0.1u[n 1] + 0.9u[n 2] y[n 1]z n +0.72 Denote the solution z-t by y[n 2]z n +0.1 Y (z) and the input z-t by A discrete transfer function The initial conditions get mixed in at recursion u[n 1]z n +0.9 u[n U(z) 2]z n Y (z) = 0.1z 1 Y (z)+0.72z 2 Y (z)+0.1z 1 U(z)+0.9z 2 U(z) Y (z)+0.1z 1 Y (z) 0.72z 2 Y (z) = 0.1z 1 U(z)+0.9z 2 U(z) Y (z) = 0.1z 1 +0.9z 2 1+0.1z 1 0.72z 2 U(z)

Discrete impulse response 14 G(z) = 0.1z 1 +0.9z 2 1+0.1z 1 0.72z 2 = 0.1z +0.9 z 2 +0.1z 0.72 From the transfer function recreate the ODE y[n] = 0.1y[n 1] + 0.72y[n 2] + 0.1u[n 1] + 0.9u[n 2] Crank it: zero i.c., u[n]=δ[n] y 0 = "0.1# y "1 + 0.72 # y "2 + 0.1# u "1 + 0.9 # u "2 = "0.1# 0 + 0.72 # 0 + 0.1# 0 + 0.9 # 0 = 0 y 1 = "0.1# y 0 + 0.72 # y "1 + 0.1# u 0 + 0.9 # u "1 = "0.1# 0 + 0.72 # 0 + 0.1#1 + 0.9 # 0 = 0.1 n n y 2 = "0.1# y 1 + 0.72 # y 0 + 0.1# u 1 + 0.9 # u 0 = "0.1# 0.1 + 0.72 # 0 + 0.1# 0 + 0.9 #1 = 0.89 y 3 = "0.1# y 2 + 0.72 # y 1 + 0.1# u 2 + 0.9 # u 1 = "0.1# 0.89 + 0.72 # 0.1 + 0.1# 0 + 0.9 # 0 = "0.017 y 4 = "0.1# y 3 + 0.72 # y 2 + 0.1# u 3 + 0.9 # u 2 = "0.1# "0.017 + 0.72 # 0.89 + 0.1# 0 + 0.9 # 0 = 0.6425

Impulse response via matlab 15 dimpo=dimpulse([0 0.1 0.9],[1 0.1-0.72],50); stem(dimpo, filled )

Impulse response via partial fractions 16 Same as for Laplace and just as much fun Y (z) = G(z)U(z) = 0.1z 1 +0.9z 2 1+0.1z 1 0.72z 2 1 0.1z +0.9 = z 2 +0.1z 0.72 = 98/170 81/170 z 0.8 z +0.9 = 98 170 z 1 81 1 0.8z 1 170 z 1 1+0.9z 1 = 98 170 z 1 1 81 1 0.8z 1 170 z 1 Note that the stable poles yield exponentially decaying terms These modes are very fast near z=-1 Rapid changes in the response 1 1+0.9z 1 = 98 170 z 1 1+0.8z 1 +0.64z 2 +0.512z 3 +... 81 170 z 1 1 0.9z 1 +0.81z 2 0.729z 3 +... = 0+0.1z 1 +0.89z 2 0.017z 3 +0.6425z 4... = Z [{0, 0.1, 0.89, 0.017, 0.6425,...}]

Matlab does partial fractions 17 >> [r,p,k]=residue([0.1 0.9],[1 0.1-0.72]) r = -0.4765 0.5765 p = -0.9000 0.8000 k = [] >> [dimpulse(1,[1-0.8],10) dimpulse(1,[1 0.9],10) r(1)*dimpulse(1,[1 0.9],10)+r(2)*dimpulse(1,[1-0.8],10)] 0 0 0 1.0000 1.0000 0.1000 0.8000-0.9000 0.8900 0.6400 0.8100-0.0170 0.5120-0.7290 0.6425 0.4096 0.6561-0.0765 0.3277-0.5905 0.4702 0.2621 0.5314-0.1021 0.2097-0.4783 0.3488 0.1678 0.4305-0.1084

Discrete frequency response 18 >> sys=tf([0.1 0.9],[1 0.1-0.72],1) Transfer function: 0.1 z + 0.9 ------------------ z^2 + 0.1 z - 0.72 Magnitude (db) 15 10 5 0 Bode Diagram Sampling time (seconds): 1 >> bode(sys) 5 10 0 90 Phase (deg) 180 270 360 10 2 10 1 10 0 10 1 Frequency (rad/s)

Summary of discrete time 19 Continuous-time Signals: functions Systems: ODEs, impulse response, state space Laplace transforms: poles stability in Re[s]<0 Fourier transforms: Frequency content Frequency response Frequency axis Convolution Discrete-time Signals: sequences Systems: ODEs, impulse response, state space Z transforms: Poles stability in z <1 Discrete Fourier transforms: Frequency content Frequency response Frequency axis s = j! z = e j! Convolution via FFT

Digital filters 20 Applied to data as a sequence Matlab commands yield the transfer function elements butter, ellip, cheby1, cheby2, FIR >> help butter butter Butterworth digital and analog filter design. [B,A] = butter(n,wn) designs an Nth order lowpass digital Butterworth filter and returns the filter coefficients in length N+1 vectors B (numerator) and A (denominator). The coefficients are listed in descending powers of z. The cutoff frequency Wn must be 0.0 < Wn < 1.0, with 1.0 corresponding to half the sample rate. First 13 lines If Wn is a two-element vector, Wn = [W1 W2], butter returns an order 2N bandpass filter with passband W1 < W < W2. [B,A] = butter(n,wn,'high') designs a highpass filter. [B,A] = butter(n,wn,'low') designs a lowpass filter. [B,A] = butter(n,wn,'stop') is a bandstop filter if Wn = [W1 W2].