1 2 3 4 5 6 7 8 9 10 11 12
//Chapter 13, Example 13.6 clc //Initialisation' p=1400 //power gain //Calculation pdb=10*log10(p) //power gain in dB //Results printf("Power Gain (dB) = %.1f dB",pdb)