diff options
Diffstat (limited to '1997/CH1/EX1.1/example1.sce')
-rwxr-xr-x | 1997/CH1/EX1.1/example1.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1997/CH1/EX1.1/example1.sce b/1997/CH1/EX1.1/example1.sce new file mode 100755 index 000000000..9f11afeb1 --- /dev/null +++ b/1997/CH1/EX1.1/example1.sce @@ -0,0 +1,17 @@ +//Chapter-1, Example 1.1, Page 34
+//=============================================================================
+clc;
+clear;
+
+//INPUT DATA
+PRF= 1000;//pulse repetitive frequency in Hz
+PW = 2*10^-6;//pulse width 2us
+Pav=100;//average power in watts
+
+//Calculations
+
+Ppeak = (Pav)/(PW*PRF);//Peak power in watts
+D = Pav/Ppeak;//Duty cycle
+
+//Output
+mprintf('Peak power is %g KW\n Duty cycle is %e',Ppeak/1000,D);
|