当前位置:
文档之家› 数字信号处理米特拉第四版实验六答案
数字信号处理米特拉第四版实验六答案
4
A copy of Program P6_2 is given below:
% Program P6_2 % Parallel Form Realizations of an IIR Transfer num = input('Numerator coefficient vector = '); den = input('Denominator coefficient vector = '); [r1,p1,k1] = residuez(num,den); [r2,p2,k2] = residue(num,den); disp('Parallel Form I') disp('Residues are');disp(r1); disp('Poles are at');disp(p1); disp('Constant value');disp(k1); disp('Parallel Form II') disp('Residues are');disp(r2); disp('Poles are at');disp(p2); disp('Constant value');disp(k2);
Answers:
Q6.1
By running Program P6_1 with num = [2 10 23 34 31 16 4] and den = [1] we arrive at the following second-order factors:
h[0] = 2 β11 = 3 β21 = 2 β12 = 1 β22 = 2 β13 = 1 β23 = 0.5 In other words, with regards to Eq. (6.3) on p. 92 of the Lab Manual, we have
H1
(
z)
=
−2
+
2(−0.4219) − 2 ⎡⎣(−0.4219)(−0.25)
1− 2(−0.25)z−1 + ⎡⎢⎣(−0.25)2
+ +
(0.6201)(0.6614)⎤⎦
(
0.6614
)2
⎤ ⎥⎦
z
−2
z
−1
+ 2(0.3438) − 2 ⎡⎣(0.3438)(−0.25) + (−2.5079)(0.4330)⎤⎦ z−1
For Parallel Form I, the program returns:
Parallel Form I Residues are
-0.4219 + 0.6201i -0.4219 - 0.6201i
0.3438 - 2.5079i 0.3438 + 2.5079i 2.3438 Poles are at -0.2500 + 0.6614i -0.2500 - 0.6614i -0.2500 + 0.4330i -0.2500 - 0.4330i -0.5000 Constant value
Q6.4
By running Program P6_1 with num = [2 10 23 34 31 16 4] and den = [36 78 87 59 26 7 1] we arrive at the following second-order factors:
The result of running the modified program P6_1 is the following: sos =
-2
Note that the complex poles occur in conjugate pairs with resides that are also conjugates. Thus, for a pair of conjugate poles at c + jd and c − jd with residues a + jb and a − jb, we get a pair of terms in the
bd ) z−1
+ d 2 z−2
.
5
For example, for the first pole pair returned for Parallel Form I above, we have a = −0.4219, b = 0.6201, c = −0.2500, and d = 0.6614. Thus, the partial fraction expansion in z−1 is given by (to within roundoff)
H1(z) is NOT a linear-phase transfer function, because the coefficients do not have the required symmetry.
Q6.2
By running Program P6_1 with num = [6 31 74 102 74 31 6] and den = [1] we arrive at the following second-order factors:
h[0] = 6
β11
=
15 6
β21 = 1
β12 = 2 β22 = 3
β13
=
2 3
β23
=
1 3
The block-diagram of the cascade realization obtained from these factors is given below:
H2(z) is a Type I linear-phase transfer function with odd length and even symmetry. 2
Project 6.3 Parallel Realization
Answers:
Q6.5
By running Program P6_2 with num = [3 8 12 7 2 –2] and den = [16 24 24 14 5 1] we arrive at the partial-fraction expansion of H1(z) in z–1 given by:
p0
=
1 18
β11 = 3 β21 = 2
α11
=
1 2
α 21
=
1 4
β12 = 1
β22 = 2
α12
=
2 3
α 22
=
1 3
β13 = 1
β23
=
1 2
α13 = 1
α 23
=
1 3
The block-diagram of the cascade realization obtained from these factors is given below:
( )( )( ) H1(z) = 2 1+ 3z−1 + 2z−2 1+ z−1 + 2z−2 1+ z−1 + 0.5z−2
1
The block-diagram of the cascade realization obtained from these factors is given below:
.
Comparing this partial fraction expansion to Eq. (6.10) on p. 96 of the Lab Manual, we have the following values for the Parallel Form I parameters:
1−
2(−0.25)z−1
+
⎡⎢⎣(
−0.25)2
+
(0.4330)2
⎤ ⎥⎦
z −2
+
1
2.3438 + 0.5z−1
=
−2
+
2.3438 1+ 0.5z−1
+
−0.8438 −1.0312z−1 1+ 0.5z−1 + 0.5z−2
+
0.6876 + 2.3437z−1 1+ 0.5z−1 + 0.25z−2
The block-diagram of the cascade realization of H2(z) with only 4 multipliers is shown below:
6.2 REALIZATION OF IIR TRANSFER FUNCTIONS
Project 6.2 Cascade Realization
Answers:
Q6.3
By running Program P6_1 with num = [3 8 12 7 2 –2] and den = [16 24 24 14 5 1] we arrive at the following second-order factors:
The result of running the modified program P6_1 is the following:
Partial Fraction Expansion given by (read the help for residuez if this isn’t clear to you)
( ) a +
1− (c +
jb
jd )
z −1+Βιβλιοθήκη a−1− (c −
jb
jd )