%booster.m
%Solves
the booster circuit in BECA 7th Ed, page648
%%%%%%%%%
define circuit parameters
Vin=5;
L=1e-5;
C=1e-6;
D=0.6;
fs=1e5;
Rload=200;
%%%%%%%%%
define iteration array
n=[0:30];
tms=1e3*n/fs; %time in
msec
%%%%%%%%%
initialize vectors and do one-time computations
Wl=Vin^2*D^2/(2*L*fs^2);
t1=2*Wl/C;
kt2=1-2/(Rload*C*fs);
vo=zeros(size(n)); %initialize
output array
%%%%%%%%%
do the iterations
for k=2:length(n)
vo(k)=sqrt(t1+kt2*(vo(k-1))^2);
end
%%%%%%%%%
display results
plot(tms,vo,'bo',tms,vo,'r'),title('DC-DC
CONVERTER OUPUT')
xlabel('Time(ms)'),ylabel('V_o(V)'), grid