blob: cbc5781973b87d3166383536bd6d7d3ecf6cf554 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Exa 10.1
// To calculate the received signal power at the receiver antenna and the SNR of the received signal.
clc;
clear all;
D=10000; //in metres
TxEIRP=30; //Effective Isotropic Radiated Power(EIRP)dBW
lamda=0.2; //in metres
Pt=10; //Transmitted power in dBW
Gt=20; //transmitter gain in dBi
Gr=3; //receiver gain in dBi
Lo=6;//total system lossses in dB
Nf=5; //noise figure in dB
BW=1.25; //mHz
k=1.38*10^-23; //Boltzmann constant
T=290; //temperature in degree kelvin
//solution
Lp=20*log10(lamda/(4*%pi*D)); //free space loss
Pr=Lp+Pt+Gt+Gr-Lo;// received power in dBW
No=10*log10(k*T); //Noise density in dBW
NO=No+30; //factor of '30' to convert from dBW to dBm
Pn=Nf+10*log10(BW*10^6)+NO;// noise signal power in dBm
SNR=(Pr+30)-Pn;
printf('The received signal power is %d dBm\n ',round(Pr+30)); //factor of '30' to convert from dBW to dBm
printf('SNR is %d dB\n',SNR);
|