summaryrefslogtreecommitdiff
path: root/1757/CH14/EX14.6/EX14_6.sce
blob: 24df19d45d19ef60fe60b5e2c60e497a041f9952 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example14.6 // determine the duty cycle of the switching regulator circuit
clc;
clear;
close;
T =120 ; //msec // total pulse time
// T = ton + toff ;
ton = T/2 ;

// The duty cycle of switching regulator circuit is given by
d = ton/T;
disp('The output voltage of switching regulator circuit is = '+string(d)+'  ');