blob: 3219e5954210957198aebf172f7b5e22e8558efa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Example14.5 // determine the duty cycle of the switching regulator circuit
clc;
clear;
close;
Vo = 4.8 ; // V // output voltage
Vin = 5 ; // V // input voltage
// The output voltage of switching regulator circuit is given by
// Vo = d*Vin ;
// Duty cycle is given as
d =Vo/Vin ;
disp('The output voltage of switching regulator circuit is = '+string(d)+' ');
|