summaryrefslogtreecommitdiff
path: root/1997/CH1/EX1.3/example3.sce
diff options
context:
space:
mode:
Diffstat (limited to '1997/CH1/EX1.3/example3.sce')
-rwxr-xr-x1997/CH1/EX1.3/example3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1997/CH1/EX1.3/example3.sce b/1997/CH1/EX1.3/example3.sce
new file mode 100755
index 000000000..c292deaa9
--- /dev/null
+++ b/1997/CH1/EX1.3/example3.sce
@@ -0,0 +1,15 @@
+//Chapter-1, Example 1.3, Page 35
+//=============================================================================
+clc;
+clear;
+
+//INPUT DATA
+D = 0.001;//Duty Cycle
+Ppeak=500*10^3;//Peak Power in Watts
+
+//Calculations
+
+Pav = D * Ppeak;// D=averagepower/Peakpower;
+
+//Output
+mprintf('Average power is %g Watts',Pav);