Professional Documents
Culture Documents
ECSE 304 Signals and Systems II Lecture 8: Unilateral z-Transform and Time - Frequency Analysis of D-T Systems
Reading: O and W, Sections 10.4 and 10.9 Richard Rose McGill University Dept. of Electrical and Computer Engineering
1
Outline
Definition and Properties of the Unilateral z-Transform Solving Linear Constant-Coefficient Difference Equations with Non-Zero Initial Conditions Time and Frequency Analysis of Discrete Time Systems
Unilateral z-Transform
The unilateral z-Transform of a sequence x[n] is defined as
X( z ) :$
n $0
% x[n]z # n
!"
The unilateral z-Transform differs from the bilateral zTransform in that the summation is carried out only over positive values of n, even if x[ n] is nonzero for n ) 0
Side effect: ROC of unilateral z-Transform is always the exterior of a circle in the z plane
3
Unilateral z-Transform
The unilateral and bilateral z-Transform of sequence are not necessarily the same, even for right-sided sequences: Example: Consider the sequence x[n] $ a n !1u[n ! 1]
Bilateral z-Transform: Apply the time shifting property to the zTransform of a nu[n]
X ( z) $ z z2 $ , 1 # az #1 z # a z *a
Unilateral z-Transform:
#( z) $ $
n $0
% a n!1z # n $ a % (az #1 )n
n $0
!"
!"
Unilateral z-Transform
Inverse unilateral z-Transform:
Partial Fraction Expansion: Select all ROCs of individual terms to be regions of the z-plane that are exterior to disks Example: The inverse z-Transform of
# ( z) $ 1 1 # az #1
can only be considered for z * a Power Series Expansion: The series must be in negative powers of z Example: In performing long division on:
1 1 # az
#1
$ 1 ! az #1 ! a 2 z #2 ! ...
This follows from the definition of the unilateral z-Transform stating that the summation only includes negative powers of z
5
"
"
$ x[#1] !
% x[m]z #(m!1)
#1 m $0
"
$ x[#1] ! z
% x[m]z
"
Substitution of variables
#m
!"
!"
x 2 [n] ( #2 ( z)
!"
!"
$ % x1[m]u[m]x2 [n # m]u[n # m]
m $#" n
$ % x1[m]x2 [n # m]
m $0
Example: Consider difference equation y[n] ! 3 y[n # 1] $ x[n] with input x[n] $ ,u[n] and initial condition y[ #1] $ Solve this equation for y[n] in terms of , and Take the unilateral z-Transform of both sides of the diff. eq.:
$ ( z ) ! 3z #1$ ( z ) ! 3 y[ #1] $ # ( z ) (1 ! 3z #1 )$ ( z ) ! 3- $
,
1 # z #1
Zero input response: Nonzero only if the initial condition y[ #1] $ - is nonzero
Zero State Response: Obtained by setting the initial conditions equal to zero Zero Input Response: The response to initial condition alone, obtained by setting the input equal to zero
10
3 4
,
#1
1 ! 3z
1 4
1 # z #1
, # 3#1 z *3
1 ! 3z% " #$ $
1 4
1 # z #1 " #%
z *1
ROC for unilateral zTransform is always outside of disk for largest pole
11
x (t ) $ % x[n]. (t # nT )
n $0
"
y (t ) $ % y[n]. (t # nT )
H ( z)
Sampled Signal
#1
H (e sT )
Replace delay elements z with delay elements that have transfer function e # sT
Z-Transform can be considered to be the Laplace transform with a change of variable: z $ e sT Later, we will discuss sampling and the limitations posed on the sample interval, T, to enable us to recover x(t) from x[n]
12
z $ e Ts $ e T (, ! j/ ) $ e,T e j/T $ e,T (cos /T ! j sin /T) $ e,T 0/T 1 z $ e,T & 0z $ /T
S-plane imaginary axis maps to unit circle Left half of s-plane:, ) 0 1| z |) 1 maps to inside of unit circle Right half of s-plane:, * 0 1| z |* 1 maps to outside of unit circle
13
Im
Re
15
e j/ # z1 ! e j/ # z M e j/ # p1 ! e j/ # p N
k
| H (e j/ ) |
- Approaching a pole, pk $ rk e j2 , decreases e j/ # pk and increases | H (e j/ ) | - Approaching a zero, z k $ rk e j2 , decreases e j/ # z and decreases | H (e j/ ) | k
k
H ( z) $ A
( z # 1)( z ! 1) ( z # jr )( z ! jr )
Pole-Zero16 Plot
e j 2/ (e j/
e j 2/ # 2r cos2e j/ ! r 2 e j 2/ # re j2 )(e j/ # re # j2 )
17
e j/
v1
p1
v3
p1 $ re j2
H(e j/ )
/
-1
2
1
v2
p2
Re{z}
p2 $ re# j2
v3
2
-45
7 #2 65
72
45
[from Boulet]
[from Boulet]
H (e j/ ) $
v1 v 2
1 v1 v 2
18
0H (e j/ ) 4895
45
-45
65 #4895
[from Boulet]
19
r=0.8; % pole radius theta = 0.8; % pole angle b1 = -2 * r * cos(theta); % denominator coeff b2 = r*r; % denominator coeff NUM = [1 0 0]; % numerator: z^2 DEN = [1 b1 b2]; % denominator: z^2 + b1*z + b2 Omega = linspace(-pi,pi,400); % Omega: frequency axis H = tf(NUM,DEN,-1) % tf: create a transfer function H_Omega = squeeze(freqresp(H,Omega)); % freqresp: compute freq response % 2 Plots: Magnitude, abs(H_Omega), and Phase, angle(H_Omega), vs. Freq. subplot(2,1,1); plot(Omega,abs(H_Omega),'k'); axis tight; xlabel('\Omega'); ylabel('|H[e^{j \Omega}]|'); subplot(2,1,2); plot(Omega,angle(H_Omega)*180/pi,'k'); axis tight; 20 xlabel('\Omega'); ylabel('\angle H[e^{j \Omega}] [deg]');
Matlab Example
Magnitude and Phase of Second Order System 3.5 3 |H[ej : ]| 2.5 2 1.5 1 0.5 -3 -2 -1 0 1 2 3
60 40
j 0 H[e : ] [deg]
21
Matlab Example
Magnitude and Phase of Second Order System 30 25 |H[ej : ]| 20 15 10 5 -3 -2 -1 0 1 2 3 r = 0.98 theta = 0.8
j 0 H[e : ] [deg]
22
Matlab Example
Magnitude and Phase of Second Order System 70 60 |H[ej : ]| 50 40 30 20 10 -3 -2 -1 0 1 2 3 r = 0.98 theta = 0.3
100
j 0 H[e : ] [deg]
50 0 -50 -100 -3 -2 -1 0 1 2 3
23