blob: 300ba2265e381b2270ff5107900624f94c04c2f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
//==============================================================================
|