When a criticallydamped RLC circuit having i0 vc0 0 is exc
When a critically-damped RLC circuit having i(0) = vc(0) = 0 is excited by a voltage source vs(t) = V teat where a = R/2L, the loop current is given by i(t) =(V/ 2L)(t^2*e^at(1( at/ 3)).
i need matlab or octave code
Solution
>> L=0.1;
>> C=0.001;
>> R=25/3;
>> t=0:0.001:0.12;
>> v=B1*exp(-a*t).*cos(wd*t) + B2*exp(-a*t).*sin(wd*t);
>> hold off
>> plot(1000*t,v,\'b+-\')
>> hold on
| >> t=0:0.001:0.12; >> v=B1*exp(-a*t).*cos(wd*t) + B2*exp(-a*t).*sin(wd*t); >> hold off >> plot(1000*t,v,\'b+-\') >> hold on |
