diff options
Diffstat (limited to '1757/CH14/EX14.5')
-rwxr-xr-x | 1757/CH14/EX14.5/EX14_5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1757/CH14/EX14.5/EX14_5.sce b/1757/CH14/EX14.5/EX14_5.sce new file mode 100755 index 000000000..3219e5954 --- /dev/null +++ b/1757/CH14/EX14.5/EX14_5.sce @@ -0,0 +1,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)+' ');
|