Professional Documents
Culture Documents
Introduction To MATLAB and Simulink, Solution of Differential Equations Using MATLAB and Simulink and Transfer Function Based Modelling
Introduction To MATLAB and Simulink, Solution of Differential Equations Using MATLAB and Simulink and Transfer Function Based Modelling
In these tasks, circuit’s equation was implemented to obtain the output across capacitor. Circuit’s
equation was obtained by KVL and the resultant equation was in the form of derivative. Along
with the derivative equation, coefficients were multiplied with some terms as well. These
coefficients are denoted by Gain block in block diagram. Four different inputs were applied at
the input of same circuit i.e. step, impulse, ramp and sinusoidal as per demanded in the question.
IN-LAB TASKS:
TASK 1: CONSIDERING G(S), PROVE THAT TF2ZP() AND ZP2TF() ARE INVERSE
OF EACH OTHER. ALSO, PROVE THAT LAPLACE() AND ILAPLACE() EXHIBITS
THE SAME PROPERTY.
s+ 0.25
G(s) =
s (s +1)(s +2)( s+ 3)
MATLAB Code:
TASK 2: FIND INVERSE LAPLACE TRANSFORM F(T) & HENCE FIND INVERSE
FROM PARTIAL FRACTION FORM (USE MATLAB TO COMPUTE THE RESIDUES)
WHERE:
R= 28Ω.
L= 30H.
C= 32F.
Derivation:
−V i + V R +V L +V o = 0;
Ldi
−V i + IR+ +V o = 0;
dt
CdV
Put I c= ;
dt
CdV
Ld ( )
CdV dt = 0;
−V i + R+ +V o
dt dt
Cd V o LC d 2 V o
−V i + R+ +V o = 0;
dt dt 2
d2V o dVo
2
=0.001V i−0.0010V 0 −0.93
dt dt
Block diagram according to the equation is designed and implemented in SIMULINK. RLC
circuit was given to compute the differential equation. Different inputs are applied at the input
and graphs are attached accordingly.
POST-LAB TASK:
TASK 1: SOLVE THE DIFFERENTIAL EQUATION TO COMPUTE X(T):
X’’+2X’+10X = t 2
Solution:
d2 x dx
2 + 2 +10 = t 2;
dt dt
d2 x dx
2 = - 2 -10 + t 2;
dt dt