blob: 9c3d853cff13fbeacd90af13a7eecede36e9b38d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Chapter-11 example 19
//=============================================================================
clc;
clear;
//input data
Pp = 100*10^3;//peak power in watts
Pav = 100;//average power in watts
//Calculations
PdB = 10*log10(Pp);//peak power in dB
PavdB = 10*log10(Pav);//average power in dB;
DCC = PdB-PavdB;//Duty Cycle Correction factor
//Output
mprintf('Duty Cycle Correction Factor is %g dB\n',DCC);
mprintf(' Note: In question given peak power is 100KW but while solving 1KW is taken instead of 100KW')
//============end of the program==============================================
|