Chapter 12 - and Systems z Solutions

advertisement
M. J. Roberts - 8/28/04
Chapter 12 -
z Transform Analysis of Signals
and Systems
Solutions
1. Find the transfer functions for these systems by block diagram reduction.
(a)
1
z
X(z)
Y(z)
0.2
1
z
0.5
1
1+0.2z -1
X(z)
Y(z)
1
1+0.5z -1
1
1+0.2z -1
X(z)
X(z)
1
1+0.5z -1
Y(z)
0.3z
z2 + 0.7z + 0.1
Y(z)
(b)
X(z)
Y(z)
1
z
1
z
0.7
0.9
12-1
M. J. Roberts - 8/28/04
(c)
X(z)
Y(z)
1
z
-0.75
2
1
z
0.3
3
2. Evaluate the stability of the systems with each of these transfer functions.
(a)
H( z) =
z
z−2
(b)
H( z) =
z
(c)
H( z) =
(d)
H( z) =
z2 −
7
8
z
3
9
z2 − z +
2
8
Poles at z =
3
3
± j . Both outside the
4
4
unit circle. Unstable.
z2 − 1
z 3 − 2 z 2 + 3.75 z − 0.5625
3. A feedback DT system has a transfer function,
H( z) =
K
1+ K
z
z − 0.9
.
For what range of K’s is this system stable?
4. Find the overall transfer functions of these systems in the form of a single ratio of
polynomials in z.
(a)
12-2
M. J. Roberts - 8/28/04
X(z)
Y(z)
1
z
0.3
H( z) =
1
z
−1 =
1 + 0.3z
z + 0.3
(b)
X(z)
Y(z)
1
z
1
z
0.3
0.9
5. Find the DT-domain responses, y[ n ] , of the systems with these transfer functions to the
unit sequence excitation, x[ n ] = u[ n ] .
(a)
H( z) =
z
z −1
Y( z) =
z
z
z
=z
z −1 z −1
(z − 1) 2
Z
ramp [ n ] ←
→
z
( z − 1)2
 z

Z

ramp [ n + 1] ←
→z
−
ramp
0
[
]
2

 ( z − 1)

=0
Z
y [ n ] = ramp [ n + 1] ←
→z
(b)
H( z) =
z
( z − 1)2
z −1
1
z−
2
6. Find the DT-domain responses, y[ n ] , of the systems with these transfer functions to the
 2πn 
excitation, x[ n ] = cos
 u[ n ] . Then show that the steady-state response is the same
 8 
12-3
M. J. Roberts - 8/28/04
as would have been obtained by using DTFT analysis with an excitation,
 2πn 
x[ n ] = cos
.
 8 
z
(a)
H( z) =
z − 0.9
Y( z ) =
z  z − cos ( Ω0 ) 
 0.3232 0.6768 z + 0.3591 
z
= z
+ 2

2
z − 0.9 z − 2 z cos ( Ω0 ) + 1
 z − 0.9 z − 2 z cos ( Ω0 ) + 1 
Using the result derived in the text,
 N (z)
y [ n ] = Z −1  z 1  + H ( p1 ) cos ( Ω0 n + ∠ H ( p1 )) u [ n ]
 D(z) 
where p1 = e
j
π
4
 0.3232 
+
y [ n ] = Z −1  z
 z − 0.9 
π
j


4
e
 u[n]
cos  Ω0 n + ∠ π
j


e 4 − 0.9 
− 0.9

e
e
j
π
4
j
π
4
π

n
y[ n ] = 0.3232(0.9) u[ n ] + 1.3644 cos n − 1.0517 u[ n ]
4

Using the DTFT,
π
π 



Ω
−
Ω
+

1
e

4  + comb
4
Y( jΩ) = jΩ
comb

 2π  
e − 0.9 2 
 2π 







jΩ
Although it is algebraically tedious, this expression can be simplified and inverse
transformed into
 2πn 
 2πn 
y[ n ] = 0.6768 cos
 + 1.1847 sin

 8 
 8 
or
 2πn

y[ n ] = 1.3644 cos
− 1.0518 . Check.
 8

(b)
H( z) =
z2
z 2 − 1.6 z + 0.63
7. Sketch the magnitude frequency response of these systems from their pole-zero
diagrams.
12-4
M. J. Roberts - 8/28/04
Im(z)
|H(e
[z]
jΩ
)|
2
(a)
Re(z)
-π
π
Ω
0.5
One pole and no zeros. Non-zero at Ω = 0 . Vector from pole to point on the unit
circle gets longer as Ω moves from 0 to π making the magnitude of the frequency
response smaller.
Im(z)
[z]
(b)
Re(z)
0.5
1
Im(z)
[z]
0.5
(c)
Re(z)
0.5
-0.5
8. Use the Jury stability test to determine which of these transfer functions are for unstable
systems.
z2 − z
(a) H( z) = 3
z − 0.25 z 2 − 0.6528 z + 0.2083
The Jury array is
1 0.2083 −0.6528 −0.25
1
2
1
−0.25 −0.6528 0.2083 .
3 −0.9566 0.114
0.6007
D(1) = 1 − 0.25 − 0.6528 + 0.2083 = 0.3055 > 0
(−1) D(−1) = (−1) 3 (−1 − 0.25 + 0.6528 + 0.2083) = 0.3889 > 0
3
−0.9566 > 0.6007
12-5
M. J. Roberts - 8/28/04
Stable
z −1
(b) H( z) = 4
z − 0.9 z 3 − 0.65 z 2 + 0.873z
(c) H( z) =
z
z − 1.5 z + 0.5 z 2 + 0.25 z − 0.25
4
3
9. Draw a root locus for each system with the given forward and feedback path transfer
functions.
z −1
4z
, H 2 ( z) =
1
z − 0.8
z+
2
z( z − 1)
z −1 z
= 4K
T( z ) = 4 K
1 z − 0.8
1

z+
 z +  ( z − 0.8)

2
2
(a) H1 ( z) = K
Im(z)
Re(z)
z −1
4
, H 2 ( z) =
1
z − 0.8
z+
2
1
z+
z
5
(c) H1 ( z) = K
, H 2 ( z) =
3
1
z−
z−
4
4
(b) H1 ( z) = K
(d) H1 ( z) = K
(e) H1 ( z) = K
z
z−
1
4
, H 2 ( z) =
z+2
3
z−
4
1
, H 2 ( z) = 1
1
2
z2 − z −
3
9
12-6
M. J. Roberts - 8/28/04
10. Using the impulse-invariant design method, design a DT system to approximate the CT
systems with these transfer functions at the sampling rates specified. Compare the
impulse and unit step (or sequence) responses of the CT and DT systems.
(a)
H( s) =
6
, f s = 4 Hz
s+6
h( t) = 6e
−6 t
u( t) ⇒ h[ n ] = 6e
Unit step response:
3
− n
2
H −1 ( s) =
u[ n ] ⇒ H( z) =
6z
z−e
−
=
3
2
6z
z − 0.2231
1 6
1
1
= −
⇒ h −1 ( t) = (1 − e −6 t ) u( t)
s s+6 s s+6
Unit sequence response:
H −1 ( z) =
z
6z
1.723 
 7.723
= z
−

z − 1 z − 0.2231  z − 1 z − 0.2231
[
]
h −1[ n ] = 7.723 − 1.723(0.2231) u[ n ]
n
Impulse Response
h(t)
Unit Step Response
h- 1(t)
6
-0.5
1
1
t
-0.5
Impulse Response
h[n]
(b)
H( s) =
t
Unit Sequence Response
h- 1[n]
8
-2
1
8
4
n
-2
4
n
6
, f s = 20 Hz
s+6
11. Using the impulse-invariant and step-invariant design methods, design digital filters to
approximate analog filters with these transfer functions. In each case choose a sampling
frequency which is 10 times the magnitude of the distance of the farthest pole or zero
from the origin of the “s” plane. Graphically compare the step responses of the digital
and analog filters.
(a)
H( s) =
2
s + 3s + 2
2
12-7
M. J. Roberts - 8/28/04
fs =
Sampling Rate:
10
= 3.183 ⇒ Ts = 0.31416
π
Impulse Invariant:
[
]
h[ n ] = 2 (0.7304 ) − (0.5335) u[ n ]
DT Impulse Response:
n
n
z-Domain Transfer Function:
H( z) = 0.3938
z
z − 1.264 z + 0.3897
2
z Transform of Step Response:
10.05
3.092 
 7.955
H −1 ( z) = 0.3938
−
+

 z − 1 z − 0.7306 z − 0.5334 
DT Step Response:
[
[n] = [3.1312 − 5.4183(0.7304)
h −1[ n ] = 3.1312 − 3.9575(0.7304 )
h −1
n −1
n
+ 1.22(0.53348)
n −1
]u[n − 1]
]
+ 2.287(0.53348) u[ n ]
n
(Last form is correct because h −1[0] = 0 .)
Step Invariant:
Laplace Transform of Step Response:
H −1 ( s ) =
1
2
1
−
+
s s +1 s + 2
CT Step Response:
h −1 ( t) = (1 − 2e − t + e −2 t ) u( t)
DT Step Response:
h −1[ n ] = 1 − 2(0.7304 ) + (0.5335) u[ n ]
(
n
z Transform of Step Response:
H −1 ( z) =
z
z
z
−2
+
z −1
z − 0.7304 z − 0.5335
Transfer Function:
H( z) = 0.0726
z + 0.7314
z − 1.2639 z + 0.3897
2
12-8
n
)
M. J. Roberts - 8/28/04
Unit Step Response
h- 1(t)
1
Impulse-Invariant Unit Sequence Response
h- 1[n]
3π
t
3.1309
-5
Step-Invariant Unit Sequence Response
h- 1[n]
30
n
1
-5
30
n
(b)
H( s) =
6s
6s
10
16
=
=−
+
s + 13s + 40 ( s + 5)( s + 8)
s+5 s+8
(c)
H( s) =
250
s + 10 s + 250
2
2
DT Step Response:
24.348 u[ n − 1] − 36.245(0.8198) n sin(0.5959 n ) 
 u[ n ]
h −1[ n ] = 
n −1
+35.55(0.8198) sin(0.5959( n − 1)) u[ n − 1] 
Alternate solution:
{
}
h −1[ n ] = 24.348 − 24.348(0.81982) [cos(0.59594 n ) + 0.01413 sin(0.59594 n )] u[ n ]
n
12. Using the difference-equation method and all backward differences, design digital filters
to approximate analog filters with these transfer functions. . In each case, if a sampling
frequency is not specified choose a sampling frequency which is 10 times the
magnitude of the distance of the farthest pole or zero from the origin of the “ s ” plane.
Graphically compare the step responses of the digital and analog filters.
(a)
H( s) = s , f s = 1MHz
Y( s )
=s
X(s)
Y( s )
1 − z −1
z −1
−1
−
z
1
H (z) =
= s s→
=
= 100 6
−1
X ( s ) s → 1− z
Ts
z
Ts
Ts
12-9
M. J. Roberts - 8/28/04
H −1 ( s) = 1 ⇒ h −1 ( t) = δ ( t)
H −1 ( z) = 10 6 ⇒ h −1[ n ] = 10 6 δ [ n ]
h-1(t)
1
t
h-1[n]
6
10
n
(b)
H( s) =
1
, f s = 1kHz
s
(c)
H( s) =
2
s + 3s + 2
2
13. Using the matched-z-transform method, design digital filters to approximate analog
filters with these transfer functions. In each case, if a sampling frequency is not
specified choose a sampling frequency which is 10 times the magnitude of the distance
of the farthest pole or zero from the origin of the “ s ” plane (unless all poles or zeros
are at the origin, in which case the sampling rate will not matter, in this method).
Graphically compare the step responses of the digital and analog filters.
(a)
H( s) = s
Zero at s = 0. Transformation is s − a → 1 − e aT z −1 . Therefore
H( z) = 1 − z −1 =
z −1
z
1
H −1 ( s) = s = 1 ⇒ h −1 ( t) = δ ( t)
s
H −1 ( z) =
z z −1
= 1 ⇒ h −1[ n ] = δ [ n ]
z −1 z
12-10
M. J. Roberts - 8/28/04
h-1(t)
1
t
h-1[n]
1
n
(b)
H( s) =
1
s
(c)
H( s) =
2s
2s
=
, Double pole at s = −5.
s + 10 s + 25 ( s + 5) 2
2
14. Using the bilinear-z-transform method, design digital filters to approximate analog
filters with these transfer functions In each case choose a sampling frequency which is
10 times the magnitude of the distance of the farthest pole or zero from the origin of the
“s” plane. Graphically compare the step responses of the digital and analog filters.
(a)
H( s) =
s − 10
s + 10
[
]
h( t) = δ ( t) − 20e −10 t u( t)
H −1 ( s) =
H (z) =
1 s − 10
1
2
=− +
⇒ h −1 ( t) = (2e −10 t − 1) u( t)
s s + 10
s s + 10
Y( s )
z − 1.9161
= 0.5219
X ( s ) s → 2 z −1
z − 0.5219
Ts z + 1
H −1 ( z) = 0.5219
z − 1.9161
z z − 1.9161
= 0.5219 z 2
z − 1.522 z + 0.5219
z − 1 z − 0.5219
1.914 z 
 2.914 z
H −1 ( z) = 0.5219
−

 z − 0.5218
z −1 
(
)
h −1[ n ] = 1.521(0.5218) − 1 u[ n ]
n
12-11
M. J. Roberts - 8/28/04
Unit Step Response
h- 1(t)
1.885
t
-1
Bilinear-z Unit Sequence Response
h- 1[n]
30
n
-1
(b)
H( s) =
10
s + 11s + 10
(c)
H( s) =
3s
s + 11s + 10
2
2
15. Design a digital-filter approximation to each of these ideal analog filters by sampling a
truncated version of the impulse response and using the specified window. In each case
choose a sampling frequency which is 10 times the highest frequency passed by the
analog filter. Choose the delays and truncation times such that no more than 1% of the
signal energy of the impulse response is truncated. Graphically compare the magnitude
frequency responses of the digital and ideal analog filters using a dB magnitude scale
versus linear frequency.
fc = 1 ; type = 'LP' ; fs = 10*fc ;
%
%
Lowpass, Rectangular Window
%
h = FIRDF(type,fc,fs,'RE',0.01) ;
N = length(h) ; Ts = 1/fs ; n = [0:N-1]' ;
F = [0:0.001:1/2]' ; [H,F] = DTFT(n,h,F) ;
subplot(2,2,1) ;
p = xyplot(F*fs,20*log10(abs(H)),[0,fs/2,-120,0],'\itf ',...
'|H(\ite^{{\itj}2{\pi}{\itf}{\itT}_s} )|',...
'Times',18,'Times',14,...
'Lowpass - Rectangular Window','Times',24,'n','c') ;
subplot(2,2,2) ;
p = xyplot(F*fs,20*log10(abs(H)),[0,fs/10,-5,0],'\itf ',...
'|H(\ite^{{\itj}2{\pi}{\itf}{\itT}_s} )|',...
'Times',18,'Times',14,...
'Lowpass - Rectangular Window','Times',24,'n','c') ;
%
%
Lowpass, von Hann Window
%
h = FIRDF(type,fc,fs,'VH',0.01) ;
N = length(h) ; Ts = 1/fs ; n = [0:N-1]' ;
F = [0:0.001:1/2]' ; [H,F] = DTFT(n,h,F) ;
subplot(2,2,3) ;
p = xyplot(F*fs,20*log10(abs(H)),[0,fs/2,-120,20],'\itf ',...
'|H(\ite^{{\itj}2{\pi}{\itf}{\itT}_s} )|',...
'Times',18,'Times',14,...
12-12
M. J. Roberts - 8/28/04
'Lowpass - Von Hann Window','Times',24,'n','c') ;
subplot(2,2,4) ;
p = xyplot(F*fs,20*log10(abs(H)),[0,fs/10,-5,0],'\itf ',...
'|H(\ite^{{\itj}2{\pi}{\itf}{\itT}_s} )|',...
'Times',18,'Times',14,...
'Lowpass - Von Hann Window','Times',24,'n','c') ;
%
Function to design a digital filter using truncation of the
%
impulse response to approximate the ideal impulse response. The
%
user specifies the type of ideal filter,
%
%
LP
lowpass
%
BP
bandpass
%
%
the cutoff frequency(s) fcs (a scalar for LP and HP a 2-vector
%
for BP and BS), the sampling rate, fs, the type of window,
%
%
RE
rectangular
%
VH
von Hann
%
BA
Bartlett
%
HA
Hamming
%
BL
Blackman
%
%
and the allowable truncation error,
%
err, as a fraction of the total impulse response signal energy.
%
%
The function returns the filter coefficients as a vector.
%
%
function h = FIRDF(type,fcs,fs,window,err)
%
function h = FIRDF(type,fcs,fs,window,err)
if fs == 0 | fs == inf | fs == -inf,
disp('Sampling rate is unusable') ;
else
fs
Ts = 1/fs ;
type = upper(type) ; window = upper(window) ;
switch type
case 'LP',
fc = fcs(1) ; zc1 = 1/(2*fc) ;
N = 200*zc1/Ts ; n = [0:N]' ;
Etotal = sum(sinc(2*fc*n*Ts).^2)
E = 0 ; N = 1 ;
while abs(E-Etotal) > Etotal*err,
N = 2*N ;
n = [0:N]' ;
E = sum(sinc(2*fc*n*Ts).^2) ;
end
delN = floor(N/10) ;
while abs(E-Etotal)<Etotal*err & abs(delN)>1,
N = N-delN ;
n = [0:N]' ;
E = sum(sinc(2*fc*n*Ts).^2) ;
delN = floor(delN/2) ;
end
N = ceil(N/2)*2 ; %
Make number of pts even
12-13
M. J. Roberts - 8/28/04
nmid = (N/2-1) ;
w = makeWindow(window,n,N) ;
h = w.*sinc(2*fc*(n-nmid)*Ts) ;
h = h/sum(h) ;
case 'BP'
fl = fcs(1) ; fh = fcs(2) ; fmid = (fh + fl)/2 ;
df = abs(fh-fl) ; zc1 = 1/df ;
N = 200*zc1/Ts ; n = [0:N]' ;
Etotal = sum((2*df*sinc(df*n*Ts).*...
cos(2*pi*fmid*n*Ts)).^2) ;
E = 0 ; N = 1 ;
while abs(E-Etotal) > Etotal*err,
N = 2*N ;
n = [0:N]' ;
E = sum((2*df*sinc(df*n*Ts).*...
cos(2*pi*fmid*n*Ts)).^2) ;
end
delN = floor(N/10) ;
while abs(E-Etotal)<Etotal*err & abs(delN)>1,
N = N-delN ;
n = [0:N]' ;
E = sum((2*df*sinc(df*n*Ts).*...
cos(2*pi*fmid*n*Ts)).^2) ;
delN = floor(delN/2) ;
end
N = ceil(N/2)*2 ; %
Make number of pts even
nmid = (N/2-1) ; n = [0:N-1]' ;
w = makeWindow(window,n,N) ;
h = w.*2.*df.*sinc(df*(n-nmid)*Ts).*...
cos(2*pi*fmid*(n-nmid)*Ts) ;
h = h/sum(h.*cos(2*pi*fmid*(n-nmid)*Ts)) ;
end
end
function w = makeWindow(window,n,N)
switch window
case 'RE'
w = ones(N,1) ;
case 'VH'
w = (1-cos(2*pi*n/(N-1)))/2 ;
case 'BA'
w = 2*n/(N-1).*(0<=n & n<=(N-1)/2) + ...
(2-2*n/(N-1)).*((N-1)/2<=n & n<N) ;
case 'HA'
w = 0.54 - 0.46*cos(2*pi*n/(N-1)) ;
case 'BL'
w = 0.42 - 0.5*cos(2*pi*n/(N-1)) + ...
0.08*cos(4*pi*n/(N-1)) ;
otherwise
w = ones(N,1) ;
end
(a)
Lowpass, f c = 1 Hz , Rectangular window
12-14
M. J. Roberts - 8/28/04
|H(ej2πfTs )| dB
|H(ej2πfTs )| dB
5
f
1
-120
(b)
f
-5
Lowpass, f c = 1 Hz , von Hann window
|H(ej2πfTs )| dB
|H(ej2πfTs )| dB
20
5
1
f
-120
f
-5
16. Draw a canonical-form block diagram for each of these system transfer functions.
(a)
H( z) =
z( z − 1)
z + 1.5 z + 0.8
2
Y(z)
1
z
X(z)
1
z
1.5
0.8
z 2 − 2z + 4
(b) H( z) =
1 2

 z −  (2 z + z + 1)

2
17. Draw a cascade-form block diagram for each of these system transfer functions.
(a)
H( z) =
z
1 
3

z + z − 

3 
4
12-15
M. J. Roberts - 8/28/04
X(z)
(b) H( z) =
z −1
4 z + 2z 2 + 2z + 3
1
z
1
z
1
3
3
4
Y(z)
3
18. Draw a parallel-form block diagram for each of these system transfer functions.
(a)
H( z) =
z
1 
3

z + z − 

3 
4
36
12
H( z) = 39 + 52
3
1
z+
z−
4
3
12
1
z
39
1
3
X(z)
1
z
9
13
Y(z)
3
4
8z 3 − 4 z 2 + 5z + 9
(b) H( z) =
7z 3 + 4 z 2 + z + 2
19. For the system in Figure E19 write state equations and output equations.
12-16
M. J. Roberts - 8/28/04
4
-2
D
x[n]
D
y[n]
D
2
3
1
5
1
2
Figure E19 A 3-state DT system
Assigning states to the responses of delay elements in the order 1,2,3 right-to-left,
q1[ n + 1] = q 2 [ n ]
q 2 [ n + 1] = q 3 [ n ]
2
1
1
q 3 [ n + 1] = x[ n ] − q 3 [ n ] − q 2 [ n ] − q1[ n ]
3
5
2
y[ n ] = −2 q 2 [ n ] + 4 q 3 [ n ]
Writing these equations in standard state-space form,


 q1[ n + 1]   0
1
0  q1[ n ]  0 
 
  


q 2 [ n + 1] =  01 01 12 q 2 [ n ] + 0  x[ n ]
q 3 [ n + 1] −
−
− q 3 [ n ] 1 
 2
5
3
,
 q1[ n ] 


y[ n ] = [0 −2 4 ]q 2 [ n ]
q 3 [ n ]
20. Write a set of state equations and output equations corresponding to these transfer
functions.
(a) H( z) =
0.9 z
z − 1.65 z + 0.9
2
We can write a resursion relation directly from the transfer function.
or
y[ n + 2] = 0.9 x[ n + 1] + 1.65 y[ n + 1] − 0.9 y[ n ]
y[ n + 1] = 0.9 x[ n ] + 1.65 y[ n ] − 0.9 y[ n − 1]
12-17
M. J. Roberts - 8/28/04
Let q1[ n ] = y[ n − 1] and let q 2 [ n ] = y[ n ] . Then
q1[ n + 1] = q 2 [ n ]
q 2 [ n + 1] = 0.9 x[ n ] + 1.65 q 2 [ n ] − 0.9 q1[ n ] .
y[ n ] = q 2 [ n ]
Writing the state equations in standard form,
1  q1[ n ]   0 
 q1[ n + 1]   0
x[ n ]

 = −0 9 1 65 
+
. q 2 [ n ] 0.9 
q 2 [ n + 1]  .
 q1[ n ] 
y[ n ] = [0 1]

q 2 [ n ]
(b) H( z) =
4 ( z − 1)
(z − 0.9)(z − 0.7)
21. Convert the difference equation,
 2πn 
10 y[ n ] + 4 y[ n − 1] + y[ n − 2] + 2 y[ n − 3] = cos
 u[ n ]
 16 
into a set of state equations and output equations.
22. Convert the state equations and output equation,
n


 q1[ n + 1]  −2 −5  q1[ n ]  1 0  1  u[ n ]

= 
+

  3

q 2 [ n + 1]  1 0 q 2 [ n ] 0 0 
0


 q [n] 
y[ n ] = [1 0] 1 
q 2 [ n ]
into a single difference equation. Using the relationships between the q’s and y, we can
write
n


y[ n + 1] −2 −5  y[ n ]  1 0  1  u[ n ]

= 
+

  3

 y[ n ]   1 0 y[ n − 1] 0 0 
0


Mulitplying matrices and using only the top equation that results,
 1
y[ n ] + 2 y[ n − 1] + 5 y[ n − 2] =  
 3
12-18
n −1
u[ n − 1] .
M. J. Roberts - 8/28/04
23. Find the responses of the system described by this set of state equations and output
equations. (Assume the system is initially at rest.)
q1[ n + 1] 3 1 q1[ n ] 4 

= 
 +   u[ n ]

q1[ n + 1] 0 −2 q1[ n ]  3 
y1[ n ] 1 −1q1[ n ]

= 


y1[ n ] 2 0 q1[ n ]
The transfer function is
H( z) = C[ zI − A ]
−1
−1
1 −1z − 3 −1  4  0 
B+D= 
+

z + 2   3  0 
2 0  0
 z + 20 

 2
H( z ) =  z − z − 6 
8 z + 22

 2
z − z − 6
The z transform of the excitation vector (in this case, a scalar) is
X( z) =
z
.
z −1
Therefore the z-domain response vector is
 z + 20 
 z2 − z − 6  z
Y (z) = H(z) X (z) = 

 8 z + 22  z − 1
 z 2 − z − 6 
 2.3
+

Y( z) = z  z − 3
4.6

+
z − 3
1.2
−
z+2
0.4
−
z+2
3.5 
z − 1
5 

z − 1
2.3( 3) n + 1.2(−2) n − 3.5 
y[ n ] = 
 u[ n ]
n
n
 4.6( 3) + 0.4 (−2) − 5 
24. Find the overall transfer functions of these systems in the form of a single ratio of
polynomials in z.
(a)
12-19
M. J. Roberts - 8/28/04
X(z)
Y(z)
1
z
0.6
1
z
0.8
(b)
1
z
Y(z)
X(z)
0.6
1
z
0.8
25. Find the DT-domain responses, y[ n ] , of the systems with these transfer functions to the
unit sequence excitation, x[ n ] = u[ n ] .
(a)
H( z) =
z
z − 1.8 z + 0.82
(b)
H( z) =
z 2 − 1.932 z + 1
z( z − 0.95)
2
26. Sketch the magnitude frequency response of these systems from their pole-zero
diagrams.
12-20
M. J. Roberts - 8/28/04
Im(z)
[z]
0.5
(a)
Re(z)
0.2
0.866
-0.5
Im(z)
[z]
0.45
(b)
Re(z)
0.866 1
-0.45
27. Using the impulse-invariant design method, design a DT system to approximate the CT
systems with these transfer functions at the sampling rates specified. Compare the
impulse and unit step (or sequence) responses of the CT and DT systems.
(a)
H( s) =
712 s
, f s = 20 Hz
s + 46 s + 240
(b)
H( s) =
712 s
, f s = 200 Hz
s + 46 s + 240
2
2
(a)
(a)
Unit Step Response
Unit Sequence Response
h- 1(t)
h- 1[n]
12
750
1
t
-5
(b)
30
n
(b)
Unit Step Response
Unit Sequence Response
h- 1(t)
h- 1[n]
12
3000
1
t
12-21
-5
200
n
M. J. Roberts - 8/28/04
28. Using the impulse-invariant and step-invariant design methods, design digital filters to
approximate analog filters with these transfer functions. In each case choose a sampling
frequency which is 10 times the magnitude of the distance of the farthest pole or zero
from the origin of the “s” plane. Graphically compare the step responses of the digital
and analog filters.
(a)
H( s) =
16 s
s + 10 s + 250
(b)
H( s) =
s+4
s + 12 s + 32
(c)
H( s) =
s2 + 4
0.125 2.125 1.25
=
+
−
2
s
s+8 s+4
s( s + 12 s + 32)
2
2
29. Using the difference-equation method and all backward differences, design digital filters
to approximate analog filters with these transfer functions. In each case choose a
sampling frequency which is 10 times the magnitude of the distance of the farthest pole
or zero from the origin of the “ s ” plane. Graphically compare the step responses of
the digital and analog filters.
(a)
H( s) =
s2
s2 + 3s + 2
(b)
H( s) =
s + 60
s + 120 s + 2000
(c)
H( s) =
16 s
s + 10 s + 250
2
2
30. Using the direct substitution method, design digital filters to approximate analog filters
with these transfer functions. In each case choose a sampling frequency which is 10
times the magnitude of the distance of the farthest pole or zero from the origin of the
“ s ” plane (unless all poles or zeros are at the origin, in which case the sampling rate
will not matter, in this method). Graphically compare the step responses of the digital
and analog filters. (First printing of the text had “matched z-transform” instead of
“direct substitution”. These solutions are for direct substitution.)
s2
H( s) = 2
(a)
s + 1100 s + 10 5
[
]
h( t) = δ ( t) − 1111e −1000 t + 11.111e −100 t u( t)
H −1 ( s ) =
1  10
1 
−


9 s + 1000 s + 100 
12-22
M. J. Roberts - 8/28/04
h −1 ( t) =
10e −1000 t − e −100 t
u( t)
9
f s = 1591.55 Hz and Ts = 628.32 µs
H (z) =
( z − 1)2
( z − 0.9391) ( z − 0.5335 )
1.1474 z
0.1474 z
−
z − 0.5335 z − 0.9391
H −1 ( z) =
[
]
h −1[ n ] = 1.1474 (0.5335) − 0.1474 (0.9391) u[ n ]
n
h (t)
n
Unit Step Response
-1
1
0.01885
h [n]
-1
t
Direct Substitution Unit Sequence Response
1
-5
30
(b)
s2 + 100 s + 5000
H( s) = 2
s + 120 s + 2000
(c)
H (s) =
s2 + 4
s s 2 + 12 s + 32
(
n
)
31. Using the bilinear-z-transform method, design digital filters to approximate analog
filters with these transfer functions In each case choose a sampling frequency which is
10 times the magnitude of the distance of the farthest pole or zero from the origin of the
“s” plane. Graphically compare the step responses of the digital and analog filters.
(a)
s2
H( s) = 2
s + 100 s + 250000
(b)
H( s) =
(c)
s2 + 4
H( s) = 2
s + 12 s + 32
s2 + 100 s + 5000
s2 + 120 s + 2000
12-23
M. J. Roberts - 8/28/04
32. Design a digital-filter approximation to each of these ideal analog filters by sampling a
truncated version of the impulse response and using the specified window. In each case
choose a sampling frequency which is 10 times the highest frequency passed by the
analog filter. Choose the delays and truncation times such that no more than 1% of the
signal energy of the impulse response is truncated. Graphically compare the magnitude
frequency responses of the digital and ideal analog filters using a dB magnitude scale
versus linear frequency.
Refer to MATLAB code in Exercise 15.
(a)
Bandpass, f low = 10 Hz , f high = 20 Hz, Rectangular window
(b)
Bandpass, f low = 10 Hz , f high = 20 Hz, Blackman window
|H(ej2πfTs )|
Bandpass - Rectangular Window
|H(ej2πfTs )|
100
f
20
-140
f
-5
|H(ej2πfTs )|
Bandpass - Blackman Window
|H(ej2πfTs )|
100
f
-140
20
f
-5
33. Draw a canonical-form block diagram for each of these system transfer functions.
(a)
(b)
z2
H( z) = 4
2 z + 1.2 z 3 − 1.06 z 2 + 0.08 z − 0.02
H( z) =
(2z
z 2 ( z 2 + 0.8 z + 0.2)
2
+ 2 z + 1)( z 2 + 1.2 z + 0.5)
34. Draw a cascade-form block diagram for each of these system transfer functions.
(a)
z2
z
H( z) = 2
+
z − 0.1z − 0.12 z − 1
12-24
M. J. Roberts - 8/28/04
z
z −1
(b) H( z) =
z
z2
1+
z − 1 z2 − 1
2
35. Draw a parallel-form block diagram for each of these system transfer functions.
(a)
H( z) = (1 + z −1 )
18
(z − 0.1)(z + 0.7)
z
z −1
(b) H( z) =
z
z2
1+
z − 1 z2 − 1
2
36. Write a set of state equations and output equations corresponding to these transfer
functions (which are for DT Butterworth filters).
(a)
H( z) =
0.06746 z 2 + 0.1349 z + 0.06746
z 2 − 1.143z + 0.4128
(b)
H( z) =
0.0201z 4 − 0.0402 z 2 + 0.0201
z 4 − 2.5494 z 3 + 3.2024 z 2 − 2.0359 z + 0.6414
37. For the system in Figure E37 write state equations and response equations.
38. Find the response of the system in Exercise E37 to the excitation, x[ n ] = u[ n ] . (Assume
that the system is initially at rest.)
39. A DT system is excited by a unit sequence and the response is
n −1
n −1

 3 
 1
y[ n ] =  8 + 2  − 9   u[ n − 1] .
 2
 4 

Write state equations and output equations for this system.
40. Define new states which transform this set of state equations and output equations into a
set of diagonalized state equations and output equations and write the new state equations
and output equations.
12-25
M. J. Roberts - 8/28/04


2πn 
 q1[ n + 1]  −0.4 −0.1 −0.2  q1[ n ]  2 −0.5 0.1cos
 u[ n ]


16


 
 


−0.2 q 2 [ n ] + 1
0
0 
n
q 2 [ n + 1] =  0.3
 3


q 3 [ n + 1]  1
  u[ n ]
−1.3q 3 [ n ] 0
0
3 

 4

 q [n] 
 y1[ n + 1]  1 0 −1  1 

= 
q 2 [ n ]
y 2 [ n + 1] 0 0.3 0.7 q
 3 [ n ]
The eigenvalue matrix is
0
0 
−0.8365 + j 0.0717


0
0  .
Λ=
−0.8365 − j 0.0717

0
0
−0.027 
The solution of the equation, ΛT = TA , for the transformation matrix, T, is
0.8908 + j 0.1086 0.1046 + j 0.0219 −0.4280 + j 0.0098 


T = 0.8908 − j 0.1086 0.1046 − j 0.0219 −0.4280 − j 0.0098  .


0.1891
−0.2556
−0.9481
The new state-variable vector is
q2 [ n ] = Tq1[ n ]
and the new diagonalized state equations are


2πn 
 q1[ n + 1]  −0.8365 + j 0.0717
0
0  q1[ n ]  1.8862 + j 0.2391 −1.7294 − j 0.0248 0.1cos
 u[ n ]
 16 

 
 



−0.8365 − j 0.0717
0
0 q 2 [ n ] + 1.8862 − j 0.2391 −1.7294 + j 0.0248 
n
q 2 [ n + 1] = 
 3



q 3 [ n + 1] 
  u[ n ]
−0.027 q 3 [ n ] 
0
0
−1.4592
0.6951

 4

 q1[ n ] 
 y1[ n + 1]   1.3188 + j 0.0988 1.3188 − j 0.0988 −0.4447 

=

 
q 2 [ n ]
y 2 [ n + 1] −0.2682 + j 0.0135 −0.2682 − j 0.0135 −0.1521 n 
q 3 [ ]
41. Find the response of the system described by this set of state equations and output
equations. (Assume the system is initially at rest.)
1
 1
 u[ n ] 
 q1[ n + 1]  − 2 − 5  q1[ n ]  2 −3
n


= 
 + 1 1  3  u n 

7
 4  [ ]
q 2 [ n + 1]  0
q 2 [ n ] 


10 

 u[ n ] 
 q1[ n ] 
n


y[ n ] = [ 4 −1]
 + [1 0] 3  u n 
[
]
n
q


[
]
 2 
 4 

12-26
M. J. Roberts - 8/28/04
12-27
Download