Cyber Exploration Laboratory 2.1
Cyber Exploration Laboratory 2.1
1
Jemuel Vince S. Delfin
School of Electrical, Electronics and Computer Engineering
Mapua University, Intramuros, Manila
[email protected]
Prelab:
4. Calculate by hand or with a calculator the partial-fraction expansion of the following transfer
functions:
5(s+2)
a. G 6 ( s)=
s ( s2 +8 s+15)
Answer:
2 5 3
G 6 ( s )= + −
3 s 6(s+3) 2( s+5)
5( s+2)
b. G 7 ( s)=
s (s2 +6 s+9)
Answer:
10 10 5
G 7 ( s )= − +
9 s 9(s +3) 3 ¿ ¿
5(s+2)
c. G 8 ( s)=
s ( s2 +6 s+34)
Answer:
55−5 s 5
G 8 ( s )= +
17( s +6 s+34) 17 s
2
Lab:
>> P3 = P1 + P2
>> P4 = P1 - P2
>> P5 = P1 .* P2
Matlab Output:
P3 =
2 16 10 18 22 27 35
P4 =
0 -2 -6 0 -2 -3 -5
P5 =
1 63 16 81 120 180 300
Matlab Output:
P6 =
1 42 718 6372 30817 76530 75600
3. Use only two MATLAB commands to find G 1(s) in Prelab 3a represented as a polynomial
divided by a polynomial.
Commands used:
Matlab Output:
G1 =
20 s^4 + 380 s^3 + 2480 s^2 + 6480 s + 5760
-------------------------------------------
s^5 + 41 s^4 + 613 s^3 + 3975 s^2 + 9450 s
Continuous-time transfer function.
4. Use only two MATLAB commands to find G2(s) expressed as factors in the numerator divided by
factors in the denominator.
Commands used:
Matlab Output:
G2 =
(s+1) (s+4) (s+5) (s+7)
------------------------------------------------------
(s+16.79) (s^2 + 4.097s + 4.468) (s^2 + 11.12s + 57.6)
Continuous-time zero/pole/gain model.
5. Using various combinations of G1(s) and G2(s), find G3(s), G4(s), and G5(s). Various combinations
imply mixing and matching G1(s) and G2(s) expressed as factors and polynomials. For example,
in finding G3(s), G1(s) can be expressed in factored form and G 2(s) can be expressed in
polynomial form. Another combination is G 1(s) and G2(s) both expressed as polynomials. Still
another combination is G1(s) and G2(s) both expressed in factored form.
Commands used:
Expressed in factored form
>> G1F = zpk([-2 -3 -6 -8],[0 -7 -9 -10 -15], [20]);
>> G2F = zpk([-1 -4 -5 -7],[-16.7851+0.0000i -5.5591+5.1669i
-5.5591-5.1669i -2.0483+0.5221i -2.0483-0.5221i], [1]);
Mixing and Matching G1(s) and G2(s) expressed as factors and polynomials
>> G3FP = G1F + G2P
>> G4FP = G1F - G2P
>> G5FP = G1F .* G2P
Matlab Output:
Expressed in factored form
G3F =
21 (s+16.76) (s+7.999) (s+6.003) (s^2 + 6.079s + 9.498) (s^2 +
3.033s + 2.607) (s^2 + 11.46s + 59.47)
-------------------------------------------------------------------
s (s+7) (s+9) (s+10) (s+15) (s+16.79) (s^2 + 4.097s + 4.468) (s^2
+ 11.12s + 57.6)
Continuous-time zero/pole/gain model.
G4F =
19 (s+16.81) (s+8.001) (s+5.997) (s+3.252) (s+1.496) (s^2 + 4.335s
+ 6.018) (s^2 + 10.74s + 55.47)
--------------------------------------------------------------------
s (s+7) (s+9) (s+10) (s+15) (s+16.79) (s^2 + 4.097s + 4.468) (s^2
+ 11.12s + 57.6)
Continuous-time zero/pole/gain model.
G5F =
20 (s+2) (s+3) (s+4) (s+5) (s+6) (s+7) (s+8) (s+1)
--------------------------------------------------------------------
s (s+7) (s+9) (s+10) (s+15) (s+16.79) (s^2 + 4.097s + 4.468) (s^2
+ 11.12s + 57.6)
Continuous-time zero/pole/gain model.
G4P =
19 s^9 + 962 s^8 + 20491 s^7 + 246942 s^6 + 1.862e06 s^5 +
9.034e06 s^4 + 2.791e07 s^3 + 5.284e07 s^2 + 5.577e07 s + 2.488e07
--------------------------------------------------------------------
s^10 + 73 s^9 + 2288 s^8 + 40566 s^7 + 449993 s^6 + 3.239e06 s^5
+ 1.502e07 s^4 + 4.25e07 s^3 + 6.491e07 s^2 + 4.082e07 s
Continuous-time transfer function.
G5P =
20 s^8 + 720 s^7 + 10920 s^6 + 90720 s^5 + 448980 s^4 + 1.346e06
s^3 + 2.362e06 s^2 + 2.192e06 s + 806400
--------------------------------------------------------------------
s^10 + 73 s^9 + 2288 s^8 + 40566 s^7 + 449993 s^6 + 3.239e06 s^5 +
1.502e07 s^4 + 4.25e07 s^3 + 6.491e07 s^2 + 4.082e07 s
Continuous-time transfer function.
Mixing and Matching G1(s) and G2(s) expressed as factors and polynomials
G3FP =
21 (s+16.76) (s+7.999) (s+6.003) (s^2 + 6.079s + 9.499) (s^2 +
3.033s + 2.607) (s^2 + 11.46s + 59.47)
-------------------------------------------------------------------
s (s+7) (s+9) (s+10) (s+15) (s+16.79) (s^2 + 4.097s + 4.468)
(s^2 + 11.12s + 57.6)
Continuous-time zero/pole/gain model.
G4FP =
19 (s+16.81) (s+8.001) (s+5.997) (s+3.252) (s+1.496) (s^2 +
4.335s + 6.018) (s^2 + 10.74s + 55.47)
-------------------------------------------------------------------
s (s+7) (s+9) (s+10) (s+15) (s+16.79) (s^2 + 4.097s + 4.468)
(s^2 + 11.12s + 57.6)
Continuous-time zero/pole/gain model.
G5FP =
20 (s+2) (s+3) (s+4) (s+5) (s+6) (s+7) (s+8) (s+1)
-------------------------------------------------------------------
s (s+7) (s+9) (s+10) (s+15) (s+16.79) (s^2 + 4.097s + 4.468) (s^2
+ 11.12s + 57.6)
Continuous-time zero/pole/gain model.
Matlab Output:
a. r =
-1.5000
0.8333
0.6667
p =
-5
-3
0
k =
[]
b. r =
-1.1111
1.6667
1.1111
p =
-3
-3
0
k =
[]
c. r =
-0.1471 - 0.4118i
-0.1471 + 0.4118i
0.2941 + 0.0000i
p =
-3.0000 + 5.0000i
-3.0000 - 5.0000i
0.0000 + 0.0000i
k =
[]