blob: c292deaa95b6df2e670dd2ec1822dbb86bc947b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Chapter-1, Example 1.3, Page 35
//=============================================================================
clc;
clear;
//INPUT DATA
D = 0.001;//Duty Cycle
Ppeak=500*10^3;//Peak Power in Watts
//Calculations
Pav = D * Ppeak;// D=averagepower/Peakpower;
//Output
mprintf('Average power is %g Watts',Pav);
|