We have circuit RLC.
g=Um.e^(-L/R t).cos(2π/T t+φ)
Ecos(wt)
///////////////
This is our code:
w=2*pi*50;E=5;l=100e-6;c=200e-6;R=10;t=0:0.01:300;s=l/R;T=2*pi*sqrt(l*c);q=1/c*w;v=(tan((l*w-q)/R))^-1;g=E*cos(w*t)*exp(-s*t)*cos((2*pi/T)+v);plot(t,g)
……..
Error in Untitled (line 11)
g=E*cos(w*t)*exp(-s*t)*cos((2*pi/T)+v);
Best Answer