blob: a308073e51e3f5bc01c218931849b7e5b1945dbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Chapter-1, Example 1.4, Page 35
//=============================================================================
clc;
clear;
//INPUT DATA
PRF = 1000;//pulse repetitive frequency in Hz
Ppeak =10*10^6;//peak power in watts
Pav =100*10^3;//average power in watts
//Calculations
D = Pav/Ppeak;//Duty cycle
PRT = 1/PRF;//pulse repetitive time;
//Output
mprintf('Duty cycle is %g\n pulse repetitive time is %g ms',D,PRT*1000);
|