blob: a6927bdcd0ffb853a989d10cc08d2d03938d3734 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Chapter 1
//Output power in dBW
//page 18
//Example no 1-8
//Given
clc;
clear;
P=0.200; //in Watt
P1=10*log10(P/1);
printf("\n The ordinary power gain %.0f dBW \n",P1);// Result
P=200; //in mW
P1=10*log10(P/1);
printf("\n The ordinary power gain %.0f dBm \n",P1);// Result
|