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)