summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.45/example45.sce
diff options
context:
space:
mode:
Diffstat (limited to '1997/CH11/EX11.45/example45.sce')
-rwxr-xr-x1997/CH11/EX11.45/example45.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1997/CH11/EX11.45/example45.sce b/1997/CH11/EX11.45/example45.sce
new file mode 100755
index 000000000..300ba2265
--- /dev/null
+++ b/1997/CH11/EX11.45/example45.sce
@@ -0,0 +1,17 @@
+//Chapter-11 example 45
+//=============================================================================
+clc;
+clear;
+//Given data
+Pt = 100*10^3; // Peak tx. power
+PRF = 1000; // pulse repetitive freq. in Hz
+PW = 1.2*10^-6; // Pulse Width in sec
+
+//Calculations
+DC = PRF*PW // Duty cycle
+Pav = Pt*DC // Avg. power
+
+//Output
+mprintf('Duty cycle is %3.4f\n Average power is %3.0f Watts',DC,Pav);
+
+//==============================================================================