Farah - Assignment - 02 Modeling & Simulation
Farah - Assignment - 02 Modeling & Simulation
SP25-REE-001
Assignment # 02
Question#01
Solution:
( ) = + +
where:
1
=
Rearranging:
Modeling and Simulation
+ + =
1 1
( ) + ( ) + ( ) = ( )
Factoring Vo(s):
( )
= ( )
( )
( )= =
( )
+ +
( )=
1 1
+ +
( )=
( + 2 + )
where:
1 1
= , 2 =
Modeling and Simulation
Rearranging, we can represent it as a unity feedback system where the plant transfer
function is:
( )=
( + )
1 1 4
− ± −
=
2
= 0
System Stability
The system is stable if all poles have negative real parts, meaning they lie in the left
half of the s-plane.
1 4
−
where ωd= {1 − }
( )= ( )+ ( )
( )
( )=
( )
( )=
R=1000R = 1000R=1000Ω
L=5L = 5L=5H
C=10C = 10C=10F
Modeling and Simulation
MATLAB Code:
% Given values
L = 5; % Inductance in henry (5 H)
for i = 1:length(zeta_values)
num = [1];
figure;
impulse(sys);
xlabel('Time (s)');
ylabel('Amplitude');
figure;
step(sys);
xlabel('Time (s)');
ylabel('Amplitude');
figure;
plot(t_out, y);
xlabel('Time (s)');
ylabel('Amplitude');
end
Figures
Modeling and Simulation
Modeling and Simulation