Question
A voltage source V(t) is applied to series connection of a resistor with resistance R = 2Q and an inductor with inductance L = 0.5 Henries as shown in the figure below The applied voltage consists of a "pulse" voltage input with duration 1 second and amplitude 6V, as shown below: The current i(t) in the inductor is given as a function of time by: i(t) = V/R[1 - e -Rt/L], for 0 le t le 1 second i(t) = V/R[eR/L - 1]. e-Rt/L, for t > 1 seconds Where V is the amplitude of the applied voltage pulse (6V). Calculate the inductor current as a function of time, for 0
Explanation / Answer
Here is the MATLAB code
t=0:0.1:3;
V=6;
R=2;L=05;
if t<=1
i=(V/R)*(1-exp(-R*t/L));
else
i=(V/R)*(exp(R/L)-1)*exp(-R*t/L);
end
plot(t,i);
title('current v/s time plot of a R-L circuit');xlabel('time');ylabel('current');