summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.20/example20.sce
blob: 40d025643bc6f6b5f79894e66ed07fed5d28014b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Chapter-11 example 20
//=============================================================================
clc;
clear;
//input data
Pp   = 1*10^6;//peak power in watts
PW   = 1*10^-6;//pulse width in sec
NPd   = 20;//pulses in one dwell period
PRF  = 1000;//pulse repetitive frequency

//calculations
PE   = Pp*PW;//pulse energy in joule
PED  = NPd*PE;//pulse energy in one dwell period
D    = PW*PRF;//Duty cycle
Pav  = Pp*D;//average power in watts

//output
mprintf('Average Power is %g watts\n Duty Cycle is %e\n Pulse Energy is %g Joules\n Pulse Energy in one Dwell Period is %g Joules\n',Pav,D,PE,PED);
mprintf(' Note: In textbook Values of PRF and pulses in one dwell period are varied from given values in question while solving ' );
;
//================end of the program============================================