+ All Categories
Home > Documents > Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal...

Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal...

Date post: 30-Jul-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
43
1 Discrete Time Analysis & Z-Transforms © 2017 School of Information Technology and Electrical Engineering at The University of Queensland http://elec3004.com Lecture Schedule: Week Date Lecture Title 1 28-Feb Introduction 2-Mar Systems Overview 2 7-Mar Systems as Maps & Signals as Vectors 9-Mar Systems: Linear Differential Systems 3 14-Mar Sampling Theory & Data Acquisition 16-Mar Aliasing & Antialiasing 4 21-Mar Discrete Time Analysis & Z-Transform 23-Mar Second Order LTID (& Convolution Review) 5 28-Mar Frequency Response 30-Mar Filter Analysis 5 4-Apr Digital Filters (IIR) 6-Apr Digital Windows 6 11-Apr Digital Filter (FIR) 13-Apr FFT 18-Apr Holiday 20-Apr 25-Apr 7 27-Apr Active Filters & Estimation 8 2-May Introduction to Feedback Control 4-May Servoregulation/PID 10 9-May Introduction to (Digital) Control 11-May Digitial Control 11 16-May Digital Control Design 18-May Stability 12 23-May Digital Control Systems: Shaping the Dynamic Response 25-May Applications in Industry 13 30-May System Identification & Information Theory 1-Jun Summary and Course Review 21 March 2017 - ELEC 3004: Systems 2
Transcript
Page 1: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

1

Discrete Time Analysis &

Z-Transforms

© 2017 School of Information Technology and Electrical Engineering at The University of Queensland

TexPoint fonts used in EMF.

Read the TexPoint manual before you delete this box.: AAAAA

http://elec3004.com

Lecture Schedule: Week Date Lecture Title

1 28-Feb Introduction

2-Mar Systems Overview

2 7-Mar Systems as Maps & Signals as Vectors

9-Mar Systems: Linear Differential Systems

3 14-Mar Sampling Theory & Data Acquisition

16-Mar Aliasing & Antialiasing

4 21-Mar Discrete Time Analysis & Z-Transform 23-Mar Second Order LTID (& Convolution Review)

5 28-Mar Frequency Response

30-Mar Filter Analysis

5 4-Apr Digital Filters (IIR)

6-Apr Digital Windows

6 11-Apr Digital Filter (FIR)

13-Apr FFT

18-Apr

Holiday 20-Apr

25-Apr

7 27-Apr Active Filters & Estimation

8 2-May Introduction to Feedback Control

4-May Servoregulation/PID

10 9-May Introduction to (Digital) Control

11-May Digitial Control

11 16-May Digital Control Design

18-May Stability

12 23-May Digital Control Systems: Shaping the Dynamic Response

25-May Applications in Industry

13 30-May System Identification & Information Theory

1-Jun Summary and Course Review

21 March 2017 - ELEC 3004: Systems 2

Page 2: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

2

Follow Along Reading:

B. P. Lathi

Signal processing

and linear systems

1998

TK5102.9.L38 1998

• Chapter 8 (Discrete-Time Signals

and Systems) – § 8.1 Introduction

– § 8.2 Some Useful Discrete-Time Signal Models

– § 8.3 Sampling Continuous-Time

Sinusoids & Aliasing

– § 8.4 Useful Signal Operations

– § 8.5 Examples of Discrete-Time Systems

• Chapter 11 (Discrete-Time System

Analysis Using the z-Transform)

– § 11.1 The 𝒵-Transform

– § 11.2 Some Properties of the Z-

Transform

Today

21 March 2017 - ELEC 3004: Systems 3

Convolution ℱ: Fourier Series

(Periodic functions)

ℒ ℱ: (𝜉 = 𝜎 + 𝑖𝜏)

(ℝ ℂ) ℂ: Poles & Zeros DFFT Z-Transform

Lecture Overview

ODE

ℒ: Laplace (s)

Transfer functions

Cascade of LCC ODE

Convolution

Z-Transform

• Course So Far:

• Lecture(s):

21 March 2017 - ELEC 3004: Systems 4

Page 3: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

3

Cheating: Despiration/Ignorance is not an excuse…

21 March 2017 - ELEC 3004: Systems 5

Platypus: File-Types & DDoS Please use appropriate filetypes

• PNG [20 kB]

• (≠ BMP) [700 kB]

L

21 March 2017 - ELEC 3004: Systems 6

Page 4: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

4

Feedback on the Peer Review/Flagged Answers Please Note

(1) “-1”

• Is an indicator in Platypus1 that nothing was calculated.

• It does not effect grades at all (it’s treated as a NAN)

(2) Flag “serious and egregious” oversights in the marking

• “why so low”, “give me mark plz”

is not an egregious oversight

(3) If a peer or tutor gave you a lower than expected mark, then it

might mean that you didn’t communicate it clearly to them.

• Ask your self how you can do better?

• Remember: “Seeing is forgetting the name …”

(4) Keep in mind the big picture here

• Focus on the learning, not the marks

21 March 2017 - ELEC 3004: Systems 7

21 March 2017 - ELEC 3004: Systems 8

Page 5: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

5

• Discrete-time signal: – May be denoted by f(kT), where time t values are specified at t = kT

– OR f[k] and viewed as a function of k (k ∈ integer)

• Continuous-time exponential:

• 𝑓(𝑡) = 𝑒−𝑡 , sampled at T = 0.1 𝑓(𝑘𝑇) = 𝑒−𝑘𝑇 = 𝑒−0.1𝑘

Discrete-Time Signal: f[k]

21 March 2017 - ELEC 3004: Systems 9

• Solution to First-Order ODE!

• Ex: “Tank” Fill

• Where: • H=steady-state fluid height in the tank

• h=height perturbation from the nominal value

• Q=steady-state flow rate through the tank

• qi=inflow perturbation from the nominal value

• q0=outflow perturbation from the nominal value

• Goal: Maintain H by adjusting Q.

Why 𝑒−𝑘𝑇 ?

21 March 2017 - ELEC 3004: Systems 10

Page 6: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

6

• ℎ = 𝑅𝑞0

•𝑑𝐶 ℎ+𝐻

𝑑𝑡 = (𝑞𝑖+𝑄) − 𝑞0 + 𝑄

•𝑑ℎ

𝑑𝑡+

𝜏=

𝑞𝑖

𝐶

• 𝜏 = 𝑅𝐶

• Solution:

ℎ 𝑡 = 𝑒𝑡−𝑡0𝜏 ℎ 𝑡0 +

1

𝐶 𝑒

𝑡− 𝜆𝜏 𝑞𝑖 𝜆 𝑑𝜆

𝑡

𝑡0

• For a fixed period of time (T) and steps k=0,1,2,…:

ℎ 𝑘 + 1 = 𝑒−𝑇𝜏 ℎ 𝑘 + 𝑅 1 − 𝑒−

𝑇𝜏 𝑞𝑖 𝑘

Why 𝑒−𝑘𝑇 ? [2]

21 March 2017 - ELEC 3004: Systems 11

So Why Is this a Concern? Difference equations

21 March 2017 - ELEC 3004: Systems 12

Page 7: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

7

Euler’s method* • Dynamic systems can be approximated† by recognising that:

𝑥 ≅𝑥 𝑘 + 1 − 𝑥 𝑘

𝑇

T

x(tk)

x(tk+1)

*Also known as the forward rectangle rule

†Just an approximation – more on this later

• As 𝑇 → 0, approximation

error approaches 0

21 March 2017 - ELEC 3004: Systems 13

Difference Equation: Euler’s approximation

21 March 2017 - ELEC 3004: Systems 14

Page 8: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

8

Difference Equation: Euler’s approximation [2]

21 March 2017 - ELEC 3004: Systems 15

Difference Equation: Euler’s approximation [3]

21 March 2017 - ELEC 3004: Systems 16

Page 9: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

9

• At high enough sample rates Euler’s approximation works well: • discrete controller ≈ continuous controller

• But if sampling is not fast enough the approximation is poor: 1

𝑇 > 30 × [𝑆𝑦𝑠𝑡𝑒𝑚 𝐵𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ]

• Works, but Not Efficient (η)

• Later (May) We consider: – better ways of representing continuous systems in discrete-time

– ways of analysing discrete controllers directly

Difference Equation: Euler’s approximation [4]

21 March 2017 - ELEC 3004: Systems 17

• In practice: m ≤ n

∵ if m > n:

then the system is an

(m - n)th -order differentiator of high-frequency signals!

• Derivatives magnify noise!

Linear Differential System Order

y(t)=P(D)/Q(D) f(t)

P(D): M

Q(D): N

(yes, N is deNominator)

21 March 2017 - ELEC 3004: Systems 18

Page 10: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

10

Linear Differential Systems

21 March 2017 - ELEC 3004: Systems 19

21 March 2017 - ELEC 3004: Systems 20

Page 11: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

11

Simple Controller Goes Digital

21 March 2017 - ELEC 3004: Systems 21

Digitisation

• Continuous signals sampled with period T

• kth control value computed at tk = kT

H(s) Difference

equations S

y(t) r(t) u(t) e(kT)

-

+

r(kT)

ADC

u(kT)

y(kT)

controller

sampler

DAC

21 March 2017 - ELEC 3004: Systems 22

Page 12: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

12

Digitisation • Continuous signals sampled with period T

• kth control value computed at tk = kT

H(s) Difference

equations S

y(t) r(t) u(t) e(kT)

-

+

r(kT)

ADC

u(kT)

sampler

y(kT)

controller

DAC

21 March 2017 - ELEC 3004: Systems 23

Return to the discrete domain

• Recall that continuous signals can be represented by a

series of samples with period T

x

t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

x(kT) T

21 March 2017 - ELEC 3004: Systems 24

Page 13: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

13

Zero Order Hold • An output value of a synthesised signal is held constant until

the next value is ready – This introduces an effective delay of T/2

x

t 1 2 3 4 5 6 7 8 9 10 11 12 13 14

x

21 March 2017 - ELEC 3004: Systems 25

Effect of ZOH Sampling

21 March 2017 - ELEC 3004: Systems 26

Page 14: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

14

Effect of ZOH Sampling

21 March 2017 - ELEC 3004: Systems 27

Back to the future A quick note on causality:

• Calculating the “(k+1)th” value of a signal using

𝑦 𝑘 + 1 = 𝑥 𝑘 + 1 + 𝐴𝑥 𝑘 − 𝐵𝑦 𝑘

relies on also knowing the next (future) value of x(t). (this requires very advanced technology!)

• Real systems always run with a delay:

𝑦 𝑘 = 𝑥 𝑘 + 𝐴𝑥 𝑘 − 1 − 𝐵𝑦 𝑘 − 1

current values future value

21 March 2017 - ELEC 3004: Systems 28

Page 15: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

15

Discrete-Time Impulse Function 𝛿[𝑘]

21 March 2017 - ELEC 3004: Systems 29

Discrete-Time Unit Step Function 𝑢[𝑘]

21 March 2017 - ELEC 3004: Systems 30

Page 16: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

16

𝑒𝜆𝑘 = 𝛾𝑘

Discrete-Time Exponential 𝛾𝑘

21 March 2017 - ELEC 3004: Systems 31

• 𝑒𝜆𝑘 = 𝛾𝑘

• 𝛾 = 𝑒𝜆 or 𝜆 = ln 𝛾

• In discrete-time systems, unlike the continuous-time case,

the form 𝛾𝑘 proves more convenient than the form 𝑒𝜆𝑘

Why?

• Consider 𝑒𝑗Ω𝑘 (𝜆 = 𝑗Ω ∴ constant amplitude oscillatory)

• 𝑒𝑗Ω𝑘 𝛾𝑘, for 𝛾 ≡ 𝑒𝑗Ω

• 𝑒𝑗Ω = 1, hence 𝛾 = 1

Discrete-Time Exponential 𝛾𝑘

21 March 2017 - ELEC 3004: Systems 32

Page 17: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

17

• Consider 𝑒𝜆𝑘

When 𝜆: LHP

• Then

• 𝛾 = 𝑒𝜆

• 𝛾 = 𝑒𝜆 = 𝑒𝑎+𝑗𝑏 = 𝑒𝑎𝑒𝑗𝑏

• 𝛾 = 𝑒𝑎𝑒𝑗𝑏 = 𝑒𝑎 ∵ 𝑒𝑗𝑏 = 1

Discrete-Time Exponential 𝛾𝑘

21 March 2017 - ELEC 3004: Systems 33

Hint: Use 𝜸 to Transform s ↔ z: z=esT

21 March 2017 - ELEC 3004: Systems 34

Page 18: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

18

BREAK

21 March 2017 - ELEC 3004: Systems 35

z Transforms (Digital Systems Made eZ)

Review and Extended Explanation

21 March 2017 - ELEC 3004: Systems 36

Page 19: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

19

The z-transform

• The discrete equivalent is the z-Transform†:

𝒵 𝑓 𝑘 = 𝑓(𝑘)𝑧−𝑘∞

𝑘=0

= 𝐹 𝑧

and

𝒵 𝑓 𝑘 − 1 = 𝑧−1𝐹 𝑧

Convenient!

†This is not an approximation, but approximations are easier to derive

F(z) y(k) x(k)

21 March 2017 - ELEC 3004: Systems 37

The z-Transform

• It is defined by:

Or in the Laplace domain:

𝑧 = 𝑒𝑠𝑇

• Thus: or

• I.E., It’s a discrete version of the Laplace:

𝑓 𝑘𝑇 = 𝑒−𝑎𝑘𝑇 ⇒ 𝒵 𝑓 𝑘 =𝑧

𝑧 − 𝑒−𝑎𝑇

21 March 2017 - ELEC 3004: Systems 38

Page 20: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

20

The z-transform • In practice, you’ll use look-up tables or computer tools (ie. Matlab)

to find the z-transform of your functions

𝑭(𝒔) F(kt) 𝑭(𝒛)

1

𝑠

1 𝑧

𝑧 − 1

1

𝑠2

𝑘𝑇 𝑇𝑧

𝑧 − 1 2

1

𝑠 + 𝑎

𝑒−𝑎𝑘𝑇 𝑧

𝑧 − 𝑒−𝑎𝑇

1

𝑠 + 𝑎 2

𝑘𝑇𝑒−𝑎𝑘𝑇 𝑧𝑇𝑒−𝑎𝑇

𝑧 − 𝑒−𝑎𝑇 2

1

𝑠2 + 𝑎2

sin (𝑎𝑘𝑇) 𝑧 sin𝑎𝑇

𝑧2− 2cos𝑎𝑇 𝑧 + 1

21 March 2017 - ELEC 3004: Systems 39

• Assume that the signal x(t) is zero for t<0, then the output

h(t) is related to x(t) as follows:

Zero-order-hold (ZOH)

x(t) x(kT) h(t) Zero-order

Hold Sampler

21 March 2017 - ELEC 3004: Systems 40

Page 21: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

21

• Recall the Laplace Transforms (ℒ) of:

• Thus the ℒ of h(t) becomes:

Transfer function of Zero-order-hold (ZOH)

21 March 2017 - ELEC 3004: Systems 41

… Continuing the ℒ of h(t) …

Thus, giving the transfer function as:

Transfer function of Zero-order-hold (ZOH)

𝓩

21 March 2017 - ELEC 3004: Systems 42

Page 22: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

22

Transfer functions help control complexity – Recall the Laplace transform:

ℒ 𝑓 𝑡 = 𝑓 𝑡 𝑒−𝑠𝑡𝑑𝑡∞

0

= 𝐹 𝑠

where

ℒ 𝑓 𝑡 = 𝑠𝐹(𝑠)

• Is there a something similar for sampled systems?

Coping with Complexity

H(s) y(t) x(t)

21 March 2017 - ELEC 3004: Systems 43

S-Plane to z-Plane [1/2]

21 March 2017 - ELEC 3004: Systems 44

Page 23: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

23

S-Plane to z-Plane [2/2]

21 March 2017 - ELEC 3004: Systems 45

Relationship with s-plane poles and z-plane transforms

21 March 2017 - ELEC 3004: Systems 46

Page 24: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

24

• Pulse in Discrete is equivalent to Dirac-δ

𝐺 𝑧 = 1 − 𝑧−1 𝒵 ℒ−1𝐺 𝑠

𝑠𝑡=𝑘𝑇

= 𝟏 − 𝒛−𝟏 𝓩𝑮 𝒔

𝒔

s ↔ z: Pulse Transfer Function Models

Source: Oxford 2A2 Discrete Systems, Tutorial Notes p. 26

21 March 2017 - ELEC 3004: Systems 47

• First-order linear constant coefficient difference equation:

z-Transforms for Difference Equations

21 March 2017 - ELEC 3004: Systems 48

Page 25: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

25

z-Transforms for Difference Equations

21 March 2017 - ELEC 3004: Systems 49

Properties of the the z-transform • Some useful properties

– Delay by 𝒏 samples: 𝒵 𝑓 𝑘 − 𝑛 = 𝑧−𝑛𝐹 𝑧

– Linear: 𝒵 𝑎𝑓 𝑘 + 𝑏𝑔(𝑘) = a𝐹 𝑧 + 𝑏𝐺(𝑧) – Convolution: 𝒵 𝑓 𝑘 ∗ 𝑔(𝑘) = 𝐹 𝑧 𝐺(𝑧)

So, all those block diagram manipulation tools you know and love

will work just the same!

21 March 2017 - ELEC 3004: Systems 50

Page 26: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

26

• It is defined by:

• Or in the Laplace domain:

𝑧 = 𝑒𝑠𝑇

• That is it is a discrete version of the Laplace:

𝑓 𝑘𝑇 = 𝑒−𝑎𝑘𝑇 ⇒ 𝒵 𝑓 𝑘 =𝑧

𝑧 − 𝑒−𝑎𝑇

The z-Transform

21 March 2017 - ELEC 3004: Systems 51

• Thus:

• z-Transform is analogous to other transforms:

𝒵 𝑓 𝑘 = 𝑓(𝑘)𝑧−𝑘∞

𝑘=0

= 𝐹 𝑧

and

𝒵 𝑓 𝑘 − 1 = 𝑧−1𝐹 𝑧

∴ Giving:

The z-Transform [2]

F(z) y(k) x(k)

21 March 2017 - ELEC 3004: Systems 52

Page 27: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

27

• The z-Transform may also be considered from the

Laplace transform of the impulse train representation of

sampled signal

𝑢∗ 𝑡 = 𝑢0𝛿 𝑡 + 𝑢1𝛿 𝑡 − 𝑇 + …+ 𝑢𝑘 𝑡−𝑘𝑇 + …

= 𝑢𝑘𝛿(𝑡 − 𝑘𝑇)

𝑘=0

The z-Transform [3]

21 March 2017 - ELEC 3004: Systems 53

The z-transform • In practice, you’ll use look-up tables or computer tools (ie. Matlab)

to find the z-transform of your functions

𝑭(𝒔) F(kt) 𝑭(𝒛)

1

𝑠

1 𝑧

𝑧 − 1

1

𝑠2

𝑘𝑇 𝑇𝑧

𝑧 − 1 2

1

𝑠 + 𝑎

𝑒−𝑎𝑘𝑇 𝑧

𝑧 − 𝑒−𝑎𝑇

1

𝑠 + 𝑎 2

𝑘𝑇𝑒−𝑎𝑘𝑇 𝑧𝑇𝑒−𝑎𝑇

𝑧 − 𝑒−𝑎𝑇 2

1

𝑠2 + 𝑎2

sin (𝑎𝑘𝑇) 𝑧 sin𝑎𝑇

𝑧2− 2cos𝑎𝑇 𝑧 + 1

21 March 2017 - ELEC 3004: Systems 54

Page 28: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

28

• Obtain the z-Transform of the sequence:

𝑥 𝑘 = {3, 0, 1, 4,1,5, … }

• Solution:

𝑋 𝑧 = 3 + 𝑧−2 + 4𝑧−3 + 𝑧−4 + 5𝑧−5

z-Transform Example

21 March 2017 - ELEC 3004: Systems 55

The z-Plane z-domain poles and zeros can be plotted just

like s-domain poles and zeros (of the ℒ):

Img(z)

Re(z) 1

Img(s)

Re(s)

• S-plane:

– λ – Plane

• 𝒛 = 𝒆𝒔𝑻 Plane

– γ – Plane

21 March 2017 - ELEC 3004: Systems 56

Page 29: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

29

Deep insight #1

The mapping between continuous and discrete poles and

zeros acts like a distortion of the plane

Img(z)

Re(z)

Img(s)

Re(s)

1

max frequency

21 March 2017 - ELEC 3004: Systems 57

γ-plane Stability • For a γ-Plane (e.g. the one the z-domain is embedded in)

the unit circle is the system stability bound

Img(z)

Re(z) 1

unit circle

Img(s)

Re(s)

21 March 2017 - ELEC 3004: Systems 58

Page 30: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

30

γ-plane Stability • That is, in the z-domain,

the unit circle is the system stability bound

Img(z)

Re(z) 1

Img(s)

Re(s)

21 March 2017 - ELEC 3004: Systems 59

z-plane stability • The z-plane root-locus in closed loop feedback behaves just

like the s-plane:

Img(z)

Re(z) 1

Img(s)

Re(s)

!

21 March 2017 - ELEC 3004: Systems 60

Page 31: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

31

• For the convergence of X(z) we require that

• Thus, the ROC is the range of values of z for which |az-1|< l

or, equivalently, |z| > |a|. Then

Region of Convergence

21 March 2017 - ELEC 3004: Systems 61

An example! • Back to our difference equation:

𝑦 𝑘 = 𝑥 𝑘 + 𝐴𝑥 𝑘 − 1 − 𝐵𝑦 𝑘 − 1

becomes

𝑌 𝑧 = 𝑋 𝑧 + 𝐴𝑧−1𝑋 𝑧 − 𝐵𝑧−1𝑌(𝑧) (𝑧 + 𝐵)𝑌(𝑧) = (𝑧 + 𝐴)𝑋 𝑧

which yields the transfer function:

𝑌(𝑧)

𝑋(𝑧)=𝑧 + 𝐴

𝑧 + 𝐵

Note: It is also not uncommon to see systems expressed as polynomials in 𝑧−𝑛

21 March 2017 - ELEC 3004: Systems 62

Page 32: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

32

This looks familiar…

• Compare: Y s

𝑋 𝑠=

𝑠+2

𝑠+1 vs

𝑌(𝑧)

𝑋(𝑧)=

𝑧+𝐴

𝑧+𝐵

How are the Laplace and z domain representations related?

21 March 2017 - ELEC 3004: Systems 63

• Two Special Cases:

• z-1: the unit-delay operator:

• z: unit-advance operator:

Z-Transform Properties: Time Shifting

21 March 2017 - ELEC 3004: Systems 64

Page 33: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

33

More Z-Transform Properties

• Time Reversal

• Multiplication by zn

• Multiplication by n (or

Differentiation in z):

• Convolution

21 March 2017 - ELEC 3004: Systems 65

The z-plane [ for all pole systems ] • We can understand system response by pole location in the z-

plane

Img(z)

Re(z) 1

[Adapted from Franklin, Powell and Emami-Naeini]

21 March 2017 - ELEC 3004: Systems 66

Page 34: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

34

Effect of pole positions • We can understand system response by pole location in the z-

plane

Img(z)

Re(z) 1

Most like the s-plane

21 March 2017 - ELEC 3004: Systems 67

Effect of pole positions • We can understand system response by pole location in the z-

plane

Img(z)

Re(z) 1

Increasing frequency

21 March 2017 - ELEC 3004: Systems 68

Page 35: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

35

Effect of pole positions • We can understand system response by pole location in the z-

plane

Img(z)

Re(z) 1

!!

21 March 2017 - ELEC 3004: Systems 69

z-Plane Response for 2nd Order Systems: Damping (ζ) and Natural frequency (ω)

[Adapted from Franklin, Powell and Emami-Naeini]

-1.0 -0.8 -0.6 -0.4 0 -0.2 0.2 0.4 0.6 0.8 1.0

0

0.2

0.4

0.6

0.8

1.0

Re(z)

Img(z)

𝑧 = 𝑒𝑠𝑇 where 𝑠 = −𝜁𝜔𝑛 ± 𝑗𝜔𝑛 1 − 𝜁2

0.1

0.2

0.3

0.4

0.5 0.6

0.7

0.8

0.9

𝜔𝑛 =𝜋

2𝑇

3𝜋

5𝑇

7𝜋

10𝑇

9𝜋

10𝑇

2𝜋

5𝑇

1

2𝜋

5𝑇

𝜔𝑛 =𝜋

𝑇

𝜁 = 0

3𝜋

10𝑇

𝜋

5𝑇

𝜋

10𝑇

𝜋

20𝑇

21 March 2017 - ELEC 3004: Systems 70

Page 36: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

36

Recall dynamic responses • Ditto the z-plane:

Img(z)

Re(z)

“More unstable”

Faster

More

Oscillatory

Pure integrator

More damped

?

21 March 2017 - ELEC 3004: Systems 71

Deep insight #2 • Gains that stabilise continuous systems can actually

destabilise digital systems!

Img(z)

Re(z) 1

Img(s)

Re(s)

!

21 March 2017 - ELEC 3004: Systems 72

Page 37: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

37

Sampling & Antialiasing (Recap)

21 March 2017 - ELEC 3004: Systems 73

SaV (Signals as Vectors): Signals as Complex Numbers Phasors

Y

X

Re j

R

Rcos( )

Rsin( )

Re ( cos , sin )

cos sin

(cos sin )

j R R

R jR

R j

Positive Frequency

component

21 March 2017 - ELEC 3004: Systems 74

Page 38: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

38

Nyquist sampling theorem

21 March 2017 - ELEC 3004: Systems 75

Nyquist sampling theorem [2]

21 March 2017 - ELEC 3004: Systems 76

Page 39: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

39

Nyquist sampling theorem & alliasing

21 March 2017 - ELEC 3004: Systems 77

Aliasing: Nonuniqueness of Discrete-Time Sinusoids [p. 553]

21 March 2017 - ELEC 3004: Systems 78

Page 40: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

40

Complex Numbers and Phasors

Y

X

Re j

R

R cos( )

Rsin( )

Re ( cos( ), sin( ))

cos( ) sin( )

(cos sin )

j R R

R jR

R j

Negative frequency

component

21 March 2017 - ELEC 3004: Systems 79

Positive and Negative Frequencies • Frequency is the derivative of phase

more nuanced than : 1

𝜏= 𝑟𝑒𝑝𝑒𝑡𝑖𝑡𝑖𝑜𝑛 𝑟𝑎𝑡𝑒

• Hence both positive and negative frequencies are possible.

• Compare – velocity vs speed

– frequency vs repetition rate

21 March 2017 - ELEC 3004: Systems 80

Page 41: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

41

• Q: What is negative frequency?

• A: A mathematical convenience

• Trigonometrical FS – periodic signal is made up from

– sum 0 to of sine and cosines ‘harmonics’

• Complex Fourier Series & the Fourier Transform – use exp ( 𝑗𝜔𝑡) instead of cos (𝜔𝑡) and sin (𝜔𝑡) – signal is sum from 0 to of exp (𝑗𝜔𝑡) – same as sum - to of exp (−𝑗𝜔𝑡) – which is more compact (i.e., less LaTeX!)

Negative Frequency

21 March 2017 - ELEC 3004: Systems 81

• Digital Systems

• Review: – Chapter 8 of Lathi

• A signal has many signals

[Unless it’s bandlimited. Then there is the one ω]

Next Time…

21 March 2017 - ELEC 3004: Systems 82

Page 42: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

42

Modulation

Analog Methods:

• AM - Amplitude modulation

– Amplitude of a (carrier) is

modulated to the (data)

• FM - Frequency modulation

– Frequency of a (carrier) signal

is varied in accordance to the

amplitude of the (data) signal

• PM – Phase Modulation

Source: http://en.wikipedia.org/wiki/Modulation

21 March 2017 - ELEC 3004: Systems 83

Start with a “symbol” & place it on a channel

• ASK (amplitude-shift keying)

• FSK (frequency-shift keying)

• PSK (phase-shift keying)

• QAM (quadrature amplitude modulation)

𝑠 𝑡 = 𝐴 ⋅ 𝑐𝑜𝑠 𝜔𝑐 + 𝜙𝑖 𝑡 = 𝑥𝑖 𝑡 cos 𝜔𝑐𝑡 + 𝑥𝑞 𝑡 sin 𝜔𝑐𝑡

Modulation [Digital Methods]

Source: http://en.wikipedia.org/wiki/Modulation | http://users.ecs.soton.ac.uk/sqc/EL334 | http://en.wikipedia.org/wiki/Constellation_diagram

21 March 2017 - ELEC 3004: Systems 84

Page 43: Discrete Time Analysis Z-Transforms · 2017-03-21 · 2 Follow Along Reading: B. P. Lathi Signal processing and linear systems 1998 TK5102.9.L38 1998 – • Chapter 8 (Discrete-Time

43

Modulation [Example – V.32bis Modem]

Source: Computer Networks and Internets, 5e, Douglas E. Comer

21 March 2017 - ELEC 3004: Systems 85

• Send multiple signals on 1 to N channel(s) – Frequency-division multiple access (FDMA)

– Time-division multiple access (TDMA)

– Code division multiple access (CDMA)

– Space division multiple access (SDMA)

• CDMA: – Start with a pseudorandom code (the noise doesn’t know your code)

Multiple Access (Channel Access Method)

Source: http://en.wikipedia.org/wiki/Code_division_multiple_access

21 March 2017 - ELEC 3004: Systems 86


Recommended