summaryrefslogtreecommitdiff
path: root/3809/CH8/EX8.2/EX8_2.sce
blob: 605ff6e2b45da446ccd4648ea22fd0aedb3d5041 (plain)
1
2
3
4
5
6
7
8
9
//Chapter 8, Example 8.2
clc
//Initialisation
p=2500                           //power gain

//Calculation
pdb=10*log10(p)                     //power gain 
//Result
printf("Power Gain (dB) = %.1f dB\n",pdb)