Professional Documents
Culture Documents
vt1=V1*sqrt(2)*cos(w1*t+a1);
vt3=V3*sqrt(2)*cos(3*w1*t+a3);
vt5=V5*sqrt(2)*cos(5*w1*t+a5);
vt=vt1+vt3+vt5;
itf1=I1*sqrt(2)*cos(w1*t+b1);
itf3=I3*sqrt(2)*cos(3*w1*t+b3);
itf5=I5*sqrt(2)*cos(5*w1*t+b5);
itf=itf1+itf3+itf5;
in=-(I1*sqrt(2)*cos(b1)+I3*sqrt(2)*cos(b3)+I5*sqrt(2)*cos(b5))*exp(-t/Tao)
it=itf+in;
vL=vt-(r+R)*it;
Vp=max(vt);
VpL=max(vL);
Ip=max(it);
pr=(r+R)*(it.*it);
pt=vt.*it;
pl=pt-pr;
scf()
plot(t,vt);plot(t,vL,"green");
xgrid;
scf()
plot(t,itf);plot(t,it,"green");plot(t,in,"red");
xgrid;
scf()
plot(t,pt);plot(t,pr,"red");plot(t,pl,"green")
xgrid;