📄 buck_boost_pcm_ae.m
字号:
function buck_boost_PCM_Ae( Vgmax,Vgmin,V,deltaV,Iomax,rg,rL,rS,rC,rD,VD,R1,R2,RS,L,Ts,Ma )Vgmax=input('please give the input voltage Vgmax=');Vgmin=input('please give the input voltage Vgmin=');V=input('please give the output voltage V=');deltaV=input('please give the delta output voltage deltaV=');Iomax=input('please give the output current Iomax=');rg=input('please give the resistance of the input voltage source rg=');rL=input('please give the resistance of the inductor rL=');rS=input('please give the resistance of the switch rS=');rC=input('please give the resistance of the capacitor rC=');rD=input('please give the resistance of the diode rD=');VD=input('please give the voltage of the diode VD=');R1=input('please give the lower sampling resistance R1=');R2=input('please give the upper sampling resistance R2=');RS=input('please give the sampling resistance of the inductor current RS=');L=input('please give the inductance L(uH)=');Ts=input('please give the switch period Ts(us)=');L=L*10^(-6);Ts=Ts*10^(-6);Ma=input('please give the slope compensation coefficient Ma=');Rb=R1+R2;D2max=(-Vgmax-Iomax*(rS-rD+rg)-((Vgmax+Iomax*(rS-rD+rg))^2+4*(V-VD-Vgmax)*Iomax*(rS+rL+rg))^0.5)/(2*(V-VD-Vgmax));D2min=(-Vgmin-Iomax*(rS-rD+rg)-((Vgmin+Iomax*(rS-rD+rg))^2+4*(V-VD-Vgmin)*Iomax*(rS+rL+rg))^0.5)/(2*(V-VD-Vgmin));Fb=R1/Rb;Ae1=(Iomax/D2min)*RS+Ma*(1-D2min)*Ts*RS+((Vgmin-(Iomax/D2min)*(rg+rS+rL))*(1-D2min)*Ts*RS/(2*L))/(deltaV*Fb);Ae2=(Iomax/D2max)*RS+Ma*(1-D2max)*Ts*RS+((Vgmin-(Iomax/D2max)*(rg+rS+rL))*(1-D2max)*Ts*RS/(2*L))/(deltaV*Fb);Aemin=max(Ae1,Ae2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -