lecture 11 z transform
play

Lecture 11: Z Transform Mark Hasegawa-Johnson ECE 401: Signal and - PowerPoint PPT Presentation

DTFT Difference Equations Impulses Z Transform Zeros Summary Lecture 11: Z Transform Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020 DTFT Difference Equations Impulses Z Transform Zeros Summary Review: DTFT 1


  1. DTFT Difference Equations Impulses Z Transform Zeros Summary Lecture 11: Z Transform Mark Hasegawa-Johnson ECE 401: Signal and Image Analysis, Fall 2020

  2. DTFT Difference Equations Impulses Z Transform Zeros Summary Review: DTFT 1 Difference Equations 2 Every Signal is a Weighted Sum of Impulses 3 Z Transform 4 Finding the Zeros of H ( z ) 5 Summary 6

  3. DTFT Difference Equations Impulses Z Transform Zeros Summary Outline Review: DTFT 1 Difference Equations 2 Every Signal is a Weighted Sum of Impulses 3 Z Transform 4 Finding the Zeros of H ( z ) 5 Summary 6

  4. DTFT Difference Equations Impulses Z Transform Zeros Summary Review: DTFT The DTFT (discrete time Fourier transform) of any signal is X ( ω ), given by ∞ � x [ n ] e − j ω n X ( ω ) = n = −∞ � π x [ n ] = 1 X ( ω ) e j ω n d ω 2 π − π Particular useful examples include: f [ n ] = δ [ n ] ↔ F ( ω ) = 1 g [ n ] = δ [ n − n 0 ] ↔ G ( ω ) = e − j ω n 0

  5. DTFT Difference Equations Impulses Z Transform Zeros Summary Summary: Ideal Filters Ideal Lowpass Filter: � 1 | ω | ≤ ω L , l I [ m ] = sin( ω L n ) L I ( ω ) = ↔ π n 0 ω L < | ω | ≤ π.

  6. DTFT Difference Equations Impulses Z Transform Zeros Summary Summary: Ideal Filters Ideal Bandpass Filter: b I [ n ] = sin( ω L n ) − sin( ω H n ) B I ( ω ) = L I ( ω | ω L ) − L I ( ω | ω H ) ↔ π n π n

  7. DTFT Difference Equations Impulses Z Transform Zeros Summary Summary: Ideal Filters Delayed Ideal Highpass Filter: H I ( ω ) = e − j ω n 0 (1 − L I ( ω )) ↔ δ [ n − n 0 ] − sin( ω H ( n − n 0 )) � n 0 = integer π ( n − n 0 ) h I [ n ] = sin( π ( n − n 0 )) − sin( ω H ( n − n 0 )) otherwise π ( n − n 0 ) π ( n − n 0 )

  8. DTFT Difference Equations Impulses Z Transform Zeros Summary Outline Review: DTFT 1 Difference Equations 2 Every Signal is a Weighted Sum of Impulses 3 Z Transform 4 Finding the Zeros of H ( z ) 5 Summary 6

  9. DTFT Difference Equations Impulses Z Transform Zeros Summary Linearity and Time-Shift Properties The linearity property of the DTFT says that z [ n ] = ax [ n ] + by [ n ] ↔ Z ( ω ) = aX ( ω ) + bY ( ω ) . The time-shift property says that z [ n ] = x [ n − n 0 ] ↔ Z ( ω ) = e − j ω n 0 X ( ω )

  10. DTFT Difference Equations Impulses Z Transform Zeros Summary Difference Equation A difference equation is an equation in terms of time-shifted values of multiple signals. For example, y [ n ] = x [ n ] − 2 x [ n − 1] + 2 x [ n − 2] By combining the linearity and time-shift properties of the DTFT, we can translate the whole difference equation into the frequency domain as Y ( ω ) = X ( ω ) − 2 e − j ω X ( ω ) + 2 e − 2 j ω X ( ω )

  11. DTFT Difference Equations Impulses Z Transform Zeros Summary Impulse Response A difference equation implements a discrete-time filter. Therefore, it has an impulse response . You can find the impulse response by just putting in an impulse, x [ n ] = δ [ n ], and seeing how it responds. Whatever value of y [ n ] that comes out of the filter is the impulse response:  1 n = 0     − 2 n = 1  h [ n ] = δ [ n ] − 2 δ [ n − 1] + 2 δ [ n − 2] = 2 n = 2     0 otherwise  If you wanted to use np.convolve to implement this filter, you now know what impulse response to use. y [ n ] = x [ n ] − 2 x [ n − 1] + 2 x [ n − 2] 1 � = h [ m ] x [ n − m ] m = − 1

  12. DTFT Difference Equations Impulses Z Transform Zeros Summary Frequency Response The frequency response of a filter is the function H ( ω ) such that Y ( ω ) = H ( ω ) X ( ω ), or in other words, H ( ω ) = Y ( ω ) X ( ω ) We can get this from the DTFT of the difference equation: 1 − 2 e − j ω + 2 e − 2 j ω � � Y ( ω ) = X ( ω ) H ( ω ) = Y ( ω ) 1 − 2 e − j ω + 2 e − 2 j ω � � X ( ω ) =

  13. DTFT Difference Equations Impulses Z Transform Zeros Summary Frequency Response is DTFT of the Impulse Response The frequency response is the DTFT of the impulse response. h [ n ] = δ [ n ] − 2 δ [ n − 1] + 2 δ [ n − 2] H ( ω ) = 1 − 2 e − j ω + 2 e − 2 j ω It sounds like an accident, that frequency response is DTFT of the impulse response. But actually, it’s because the method for computing frequency response and the method for computing impulse response do the same two steps, in the opposite order (see next slide).

  14. DTFT Difference Equations Impulses Z Transform Zeros Summary How to compute the frequency response 1 Take the DTFT of every term, so that ax [ n − n 0 ] is converted to ae − j ω n 0 X ( ω ). 2 Divide by X ( ω ). How to compute the DTFT of the impulse response 1 Replace x [ n ] by δ [ n ], so that ax [ n − n 0 ] is converted to a δ [ n − n 0 ]. 2 Take the DTFT, so that a δ [ n − n 0 ] becomes ae − j ω n 0 .

  15. DTFT Difference Equations Impulses Z Transform Zeros Summary How to compute the frequency response 1 Take the DTFT of every term: Y ( ω ) = X ( ω ) − 2 e − j ω X ( ω ) + 2 e − 2 j ω X ( ω ) 2 Divide by X ( ω ). H ( ω ) = 1 − 2 e − j ω + 2 e − 2 j ω How to compute the DTFT of the impulse response 1 Replace x [ n ] by δ [ n ]: h [ n ] = δ [ n ] − 2 δ [ n − 1] + 2 δ [ n − 2] 2 Take the DTFT: H ( ω ) = 1 − 2 e − j ω + 2 e − 2 j ω

  16. DTFT Difference Equations Impulses Z Transform Zeros Summary Outline Review: DTFT 1 Difference Equations 2 Every Signal is a Weighted Sum of Impulses 3 Z Transform 4 Finding the Zeros of H ( z ) 5 Summary 6

  17. DTFT Difference Equations Impulses Z Transform Zeros Summary Definition of the DTFT The definition of the DTFT is ∞ � x [ n ] e − j ω n X ( ω ) = n = −∞ We viewed this, before, as computing the phasor X ( ω ) using the orthogonality principle: multiply x [ n ] by a pure tone at the corresponding frequency, and sum over all time. But there’s another useful way to think about this.

  18. DTFT Difference Equations Impulses Z Transform Zeros Summary A Signal is a Weighted Sum of Impulses Try writing the DTFT as X ( ω ) = . . . + x [ − 1] e j ω + x [0] + x [1] e − j ω + . . . This looks like the DTFT of a difference equation. The inverse DTFT would be x [ n ] = . . . + x [ − 1] δ [ n + 1] + x [0] δ [ n ] + x [1] δ [ n − 1] + . . .

  19. DTFT Difference Equations Impulses Z Transform Zeros Summary A Signal is a Weighted Sum of Impulses

  20. DTFT Difference Equations Impulses Z Transform Zeros Summary A Signal is a Weighted Sum of Impulses So we can use the DTFT formula, X ( ω ) = � x [ n ] e − j ω n , to inspire us to think about x [ n ] as just a weighted sum of impulses: ∞ ∞ x [ m ] e − j ω m ↔ x [ n ] = � � X ( ω ) = x [ m ] δ [ n − m ] m = −∞ m = −∞

  21. DTFT Difference Equations Impulses Z Transform Zeros Summary Outline Review: DTFT 1 Difference Equations 2 Every Signal is a Weighted Sum of Impulses 3 Z Transform 4 Finding the Zeros of H ( z ) 5 Summary 6

  22. DTFT Difference Equations Impulses Z Transform Zeros Summary Z: a Frequency Variable for Time Shifts If we’re going to be working a lot with delays, instead of pure tones, then it helps to change our frequency variable. Until now, we’ve been working in terms of ω , the frequency of the pure tone: ∞ � x [ n ] e − j ω n X ( ω ) = n = −∞ A unit delay, δ [ n − 1], has the DTFT e − j ω . Just to reduce the notation a little, let’s define the basic unit to be z = e j ω , which is the transform of δ [ n + 1] (a unit advance). Then we get: ∞ � x [ n ] z − n X ( z ) = n = −∞

  23. DTFT Difference Equations Impulses Z Transform Zeros Summary Main Use of Z Transform: Difference Equations The main purpose of the Z transform, for now, is just so that we have less to write. Instead of transforming y [ n ] = x [ n ] − 2 x [ n − 1] + 2 x [ n − 2] to get 1 − 2 e − j ω + 2 e − 2 j ω � � Y ( ω ) = X ( ω ) Now we can just write 1 − 2 z − 1 + 2 z − 2 � � Y ( z ) = X ( z )

  24. DTFT Difference Equations Impulses Z Transform Zeros Summary Main Use of Z Transform: Difference Equations The longer the difference equation, the more you will appreciate writing z instead of e j ω . y [ n ] = 0 . 2 x [ n + 3] + 0 . 3 x [ n + 2] + 0 . 5 x [ n + 1] − 0 . 5 x [ n − 1] − 0 . 3 x [ n − 2] − 0 . 2 x [ n − 2] H ( z ) = Y ( z ) X ( z ) = 0 . 2 z 3 + 0 . 3 z 2 + 0 . 5 z 1 − 0 . 5 z − 1 − 0 . 3 z − 2 − 0 . 2 z − 3

  25. DTFT Difference Equations Impulses Z Transform Zeros Summary A Signal is a Weighted Sum of Impulses Remember that a signal is just a weighted sum of impulses? ∞ � x [ n ] = x [ m ] δ [ n − m ] m = −∞ Since the Z-transform of δ [ n − m ] is z − m , we can transform the above difference equation to get ∞ � x [ m ] z − m . X ( z ) = m = −∞ It’s like we’ve converted a weighted sum of impulses ( x [ n ]) into a polynomial in z ( X ( z )).

  26. DTFT Difference Equations Impulses Z Transform Zeros Summary Outline Review: DTFT 1 Difference Equations 2 Every Signal is a Weighted Sum of Impulses 3 Z Transform 4 Finding the Zeros of H ( z ) 5 Summary 6

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend