Professional Documents
Culture Documents
2021-2022
Department of Electrical and Electronics Engineering
MATLAB
2.2 PRELAB
3. Use a hand calculation to solve the circuit for the Laplace transforms of the
loop currents shown in Fig. 2.1.
Solution:
| |
−( s+2 )−53 Vs
( 3
)
2 s + 4+ − ( s+ 2 ) 0
s
( 4
−( s+ 2 ) s +8+ 0
s )
I 1=
∆
Reference: Nise, N. S. (2015). Control systems engineering (7th ed). Hoboken, New Jersey: John Wiley & Sons, Inc.
Mindanao State University - Marawi EEE 160.1 – 2nd Semester S.Y. 2021-2022
Department of Electrical and Electronics Engineering
¿
−( s +2 ) [ 0 ] −(−5 ) [ 0 ] + 3Vs [ 2 s + 4+ ( 3
s)( 4
)
s+ 8+ −( s+2 )2 ]
s
∆
¿
(
3Vs s +16 s +
2 40 12
+ 2 +39 ∗s
s s
2
)
∆
3 Vs ( s +16 s 3 +39 s 2+ 40 s+12 )
4
I 1=
∆
I 2=
| |
( s+7 + 5s )−5 3 Vs
− ( s+ 2 )−( s+2 ) 0
−5 s+ 8+ 0 ( 4
s
∆
)
(
¿ s +7+
5
s )
[ 0 ] −(−5 ) [ 0 ] +3 Vs ¿ ¿
¿
(
3Vs −s2−15 s−30−
8
s )
∗−s
∆
3 Vs ( s 3+15 s2 +30 s+8 )
I 2=
∆
I 3=
|( s+7 + 5s )−(s +2)3 Vs
3
−( s+2 ) (2 s+ 4+ ) 0
−5−( s +2 ) 0
s
∆
|
¿
5 3
(s+7+ ) [ 0 ]− ( s+ 2 ) [ 0 ] +3 Vs [ ( s+2 )2 −(−5 ) 2 s +4 + ]
s s ( )
∆
¿
(
3Vs s2 +14 s+24 +
15
s)∗s
∆
3Vs ( s 3+14 s 2+ 24 s +15 )
I 3=
∆
Reference: Nise, N. S. (2015). Control systems engineering (7th ed). Hoboken, New Jersey: John Wiley & Sons, Inc.
Mindanao State University - Marawi EEE 160.1 – 2nd Semester S.Y. 2021-2022
Department of Electrical and Electronics Engineering
| |
( s+7 + 5s )−( s+2 )−5
( s)
∆= −( s+ 2 ) 2 s+ 4+ 3 −( s+2 )
−5−( s +2 ) ( s+8+ )
4
s
¿
[ 60 2 284 396
s
3
+s + 2 +
s s
+26 s+205 ∗s3
]
5 4 3 2
∆=s +26 s +205 s + 396 s + 284 s +60
Therefore:
3 Vs ( s4 + 16 s 3+ 39 s 2+ 40 s +12 )
I 1= 5 4 3 2
s + 26 s +205 s +396 s +284 s+60
3 Vs ( s 3 +15 s 2 +30 s+ 8 )
I 2= 5 4 3 2
s + 26 s +205 s +396 s +284 s+60
3 Vs ( s 3+ 14 s 2 +24 s+15 )
I 3= 5 4 3 2
s + 26 s +205 s +396 s +284 s+ 60
2.3 LAB
1. Use MATLAB to
a. Generate symbolically the time function f(t) shown in Prelab 1.
Generating the function symbolically:
syms t;
f=simplify(ft)
ft=0.0075-0.00034*exp(-2.5*t)*cos(22*t)+0.087*exp(-
2.5*t)*sin(22*t)-0.0072*exp(-8*t);
f =
(87*sin(22*t)*exp(-(5*t)/2))/1000 -
(17*cos(22*t)*exp(-(5*t)/2))/50000 - (9*exp(-8*t))/1250 +
3/400
Reference: Nise, N. S. (2015). Control systems engineering (7th ed). Hoboken, New Jersey: John Wiley & Sons, Inc.
Mindanao State University - Marawi EEE 160.1 – 2nd Semester S.Y. 2021-2022
Department of Electrical and Electronics Engineering
Fs =
((2*s + 6)*(s + 5)*(s + 7))/(s*(s + 8)*(s^2 + 10*s
+ 100))
Fs =
Fs =
Reference: Nise, N. S. (2015). Control systems engineering (7th ed). Hoboken, New Jersey: John Wiley & Sons, Inc.
Mindanao State University - Marawi EEE 160.1 – 2nd Semester S.Y. 2021-2022
Department of Electrical and Electronics Engineering
IFS =
(5*exp(-8*t))/112 + (237*exp(-5*t)*(cos(5*3^(1/2)*t) +
(3^(1/2)*sin(5*3^(1/2)*t))/9))/140 + 21/80
Reference: Nise, N. S. (2015). Control systems engineering (7th ed). Hoboken, New Jersey: John Wiley & Sons, Inc.
Mindanao State University - Marawi EEE 160.1 – 2nd Semester S.Y. 2021-2022
Department of Electrical and Electronics Engineering
/ 4 3 2 \
| V s (s + 16 s + 39 s + 40 s + 12) |
| ------------------------------------ |
| #1 |
| |
| 2 3 2 |
| V s (s + 15 s + 30 s + 8) |
| ---------------------------- |
| #1 |
| |
| 2 3 2 |
| V s (s + 14 s + 24 s + 15) |
| ----------------------------- |
\ #1 /
where
5 4 3 2
3 Vs ( s4 + 16 s 3+ 39 s 2+ 40 s +12 )
I 1= 5 4 3 2
s + 26 s +205 s +396 s +284 s+60
3 Vs ( s 3 +15 s 2 +30 s+ 8 )
I 2= 5 4 3 2
s + 26 s +205 s +396 s +284 s+60
3 Vs ( s 3+ 14 s 2 +24 s+15 )
I 3= 5 4 3 2
s + 26 s +205 s +396 s +284 s+ 60
Reference: Nise, N. S. (2015). Control systems engineering (7th ed). Hoboken, New Jersey: John Wiley & Sons, Inc.