𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of...

15
Transform Lab Notes 13

Transcript of 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of...

Page 1: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

𝑧 Transform Lab Notes 13

Page 2: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Review Generalized CTFT -> Laplace Transform

𝑋 𝑠 = π‘₯ 𝑑 π‘’βˆ’π‘ π‘‘π‘‘π‘‘

∞

βˆ’βˆž

π‘₯ 𝑑 =1

𝑗2πœ‹ 𝑋 𝑠 𝑒+𝑠𝑑𝑑𝑠

𝜎+π‘—βˆž

πœŽβˆ’π‘—βˆž

𝑋 π‘—πœ” = π‘₯ 𝑑 π‘’βˆ’π‘—πœ”π‘‘π‘‘π‘‘

∞

βˆ’βˆž

π‘₯ 𝑑 =1

2πœ‹ 𝑋 π‘—πœ” 𝑒+π‘—πœ”π‘‘π‘‘πœ”

∞

βˆ’βˆž

Page 3: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Fourier Family Continuous Frequency, 𝑋 𝑓 Discrete Frequency, 𝑋 π‘˜

Continuous Time, π‘₯ 𝑑

Discrete Time, π‘₯ 𝑛

Continuous Time Fourier Transform (CTFT)

Discrete Time Fourier Transform (DTFT)

Continuous Time Fourier Series (CTFS)

Discrete Time Fourier Series (DTFS) -OR- Discrete Fourier Transform (DFT)

Generalizes to Laplace Transform

Generalizes to 𝑧 Transform

Page 4: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

New Idea Generalized DTFT -> 𝑧 Transform

𝑋 𝑧 = π‘₯ 𝑛 π‘§βˆ’π‘›βˆž

𝑛=βˆ’βˆž

π‘₯ 𝑛 =1

𝑗2πœ‹ 𝑋 𝑧 π‘§π‘›βˆ’1𝑑z

𝐢

𝑋 𝑒𝑗Ω = π‘₯ 𝑛 π‘’βˆ’π‘—Ξ©n∞

𝑛=βˆ’βˆž

π‘₯[𝑛] =1

2πœ‹ 𝑋 𝑒𝑗Ω 𝑒+𝑗Ωn𝑑Ω2πœ‹

Page 5: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Bilateral 𝑧 Transform

𝑋 𝑧 = π‘₯ 𝑛 π‘§βˆ’π‘›βˆž

𝑛=βˆ’βˆž

Region of Convergence for the bilateral z-Transform is dependent upon the nature of the discrete-time signal, π‘₯ 𝑛 .

Page 6: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Example π‘₯ 𝑛 = 0.5 𝑛 𝑒 𝑛

π‘₯ 𝑛 = … , 0.53, 0.52, 0.51, 1 , 0.51, 0.52, 0.53, …

Page 7: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Find z Transform of x[n]

𝑋 𝑧 = 0.5 𝑛 𝑒 𝑛 π‘§βˆ’π‘›βˆž

𝑛=βˆ’βˆž

rewriting the sum since the amplitude values are the same,

𝑋 𝑧 = 2 0.5𝑛 π‘§βˆ’π‘›βˆž

𝑛=0

βˆ’ 1

the sum is just the geometric series

0.5𝑛 π‘§βˆ’π‘›βˆž

𝑛=0

= 0.5

𝑧

π‘›βˆž

𝑛=0

=1

1 βˆ’0.5𝑧

=𝑧

𝑧 βˆ’ 0.5, 𝑧 > 0.5

∴ 𝑋 𝑧 =2𝑧

𝑧 βˆ’ 0.5βˆ’ 1 =

𝑧 + 0.5

𝑧 βˆ’ 0.5, 𝑧 > 0.5

ROC

Page 8: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

In the z-plane 𝑋 𝑧 =𝑧 + 0.5

𝑧 βˆ’ 0.5

Page 9: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Poles and Zeros

Just like the Laplace transforms, z Transforms have poles and zeros also

The function in matlab to map these on the complex plane is called zplane().

This is similar to pzmap().

Page 10: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Code

num1=[1 0.5];

den1=[1 -0.5];

zs1=roots(num1);

ps1=roots(den1);

zplane(zs1,ps1)

Page 11: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Frequency Response

Page 12: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Frequency Response

Additionally the function in matlab to show the frequency response of a discrete-time system is called freqz().

This is similar to freqs() for continuous-time systems.

Page 13: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Code

num1=[1 0.5];

den1=[1 -0.5];

omega=linspace(-20,20,200);

freqz(num1,den1,omega)

Page 14: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Multiplying polynomials

Question: How do I use MATLAB to multiply this expression?

𝑧2 + 2𝑧 + 10 𝑧 + 2

Answer: Use conv()!

conv([1 2 10],[1 2])

ans =

1 4 14 20

Note this function can be nested also!

Page 15: 𝑧 Transformperrins/class/F14_360/lab/...Β Β· 2014. 12. 2.Β Β· Unilateral z-Transform Region of Convergence for the unilateral z-Transform is always the open exterior of a circle,

Unilateral z-Transform

Region of Convergence for the unilateral z-Transform is always the open exterior of a circle, centered at the origin of the z-plane whose radius is the largest finite pole magnitude.

Contrast this with the Region of Convergence for the unilateral Laplace Transform which is always the region of the s-plane to the right of all the finite poles.

𝑋 𝑧 = π‘₯ 𝑛 π‘§βˆ’π‘›βˆž

𝑛=0