UIT, ALLAHABAD DEPARTMENT OF ELECTRICAL ENGINEERING
EXPERIMENT NO-09
TIME RESPONSE OF R-L-C CIRCUIT
1.1 Objective 1.2 Software Used 1.3 Numerical 1.4 Syntax 1.5 Command 1.6 Result 1.7 Precautions
1.1 OBJECTIVE: To determine the time response of R-L-C Circuit.
1.2 SOFTWARE USED:
[Link]. SOFTWARE USED SPECIFICATION
1. MATLAB 7.9.0(R2009b)
2. MICROSOFT OFFICE WORD 2007
1.3 NUMERICAL: An R-L-C circuit has R=180 ohms C=1/280 farads L= 20 henries and applied voltage E(t)=
10sin t. Assuming that no charge is present but an initial current of i A is flowing at t=0 when the voltage is first
dq
applied, find q and i= at any time t. q is given by the differential equation.
dt
d2 q dq q
L 2 + R + =E (t )
dt dt c
1.4 SYNTAX:
q = dsolve(‘given equation’, ‘initial condition’)
simplify(q) % simplify the result
pretty(q) % print in readable form
diff(q) % differentiation of ‘q’ w.r.t. ‘t’
1.5 COMMAND:
>> syms q t
>> q=dsolve('20*D2q+180*Dq+280*q=10*sin(t)','q(0)=0')
>> pretty(q)
>> i=diff(q)
>> pretty(i)
1.6 RESULTS:
q = (13*sin(t))/500 - (9*cos(t))/500 - (C4 - 9/500)/exp(2*t) + C4/exp(7*t)
pretty(q) =
13 sin(t) 9 cos(t) C4 - 9/500 C4
--------- - -------- - ---------- + --------
500 500 exp(2 t) exp(7 t)
Exp-9 (NEE-353) Page 20
UIT, ALLAHABAD DEPARTMENT OF ELECTRICAL ENGINEERING
i=
(13*cos(t))/500 + (9*sin(t))/500 + (2*(C4 - 9/500))/exp(2*t) - (7*C4)/exp(7*t)
pretty(i)
13 cos(t) 9 sin(t) 2 (C4 - 9/500) 7 C4
--------- + -------- + -------------- - --------
500 500 exp(2 t) exp(7 t)
1.7 PRECAUTION:
Command should be written correctly.
Appropriate syntax should be used.
Exp-9 (NEE-353) Page 21