数字信号处理米特拉第四版实验六答案
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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
0.0556 0.1667 0.1111 1.0000 0.5000 0.2500
1.0000 1.0000 2.0000 1.0000 0.6667 0.3333
1.0000 1.0000 0.5000 1.0000 1.0000 0.3333
In terms of the parameters p0 , α jk , and β jk given in Eq. (6.8) of the Lab Manual, this corresponds to the following:
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:
p0
=
1 18
β11 = 3 β21 = 2
α11
=
1 2
wenku.baidu.com
α 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:
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
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
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:
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)
p0
=
3 16
β11
=
−
1 3
β21 = 0
β12 = 2 β22 = 2
β13 = 1 β23 = 1
α11
=
1 2
α12
=
1 2
α13
=
1 2
α21 = 0
α 22
=
1 4
α 23
=
1 2
3
The block-diagram of the cascade realization obtained from these factors is given below:
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
-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
sos =
0.1875 -0.0625
0 1.0000 0.5000
0
1.0000 2.0000 2.0000 1.0000 0.5000 0.2500
1.0000 1.0000 1.0000 1.0000 0.5000 0.5000
In terms of the parameters p0 , α jk , and β jk given in Eq. (6.8) of the Lab Manual, this corresponds to 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 )
z −1
=
2a − 2(ac +
1− 2cz−1 + c2
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);
.
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:
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 =
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
A copy of the MODIFIED Program P6_1 is given below:
% Program P6_1A % Conversion of a rational transfer function % to its factored form. % MODIFIED to make the numerator and denominator coefficient vectors % the same length for calling tf2zp. num = input('Numerator coefficient vector = '); den = input('Denominator coefficient vector = '); [b,a] = eqtflength(num,den); % make lengths equal [z,p,k] = tf2zp(b,a); sos = zp2sos(z,p,k)
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:
Name: SOLUTION Section:
Laboratory Exercise 6
DIGITAL FILTER STRUCTURES
6.1 REALIZATION OF FIR TRANSFER FUNCTIONS
Project 6.1 Cascade Realization
Note: program P6_1.m cannot be called directly as suggested in Q6.1 below. This is because tf2zp requires the length of the numerator and denominator polynomials to be the same. Thus, it is necessary to MODIFY P6_1.m as shown 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: