summaryrefslogtreecommitdiff
path: root/3446/CH10/EX10.2/Ex10_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH10/EX10.2/Ex10_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3446/CH10/EX10.2/Ex10_2.sce')
-rw-r--r--3446/CH10/EX10.2/Ex10_2.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3446/CH10/EX10.2/Ex10_2.sce b/3446/CH10/EX10.2/Ex10_2.sce
new file mode 100644
index 000000000..cb0793189
--- /dev/null
+++ b/3446/CH10/EX10.2/Ex10_2.sce
@@ -0,0 +1,31 @@
+// Exa 10.2
+// To calculate the received signal power at the receiver antenna and the SNR of the received signal.
+
+clc;
+clear all;
+
+//As we have to use data from Eg 10.1,
+D=10000; // in metres
+TxEIRP=30; //Effective Isotropic Radiated Power(EIRP)dBW
+lamda=0.2; //in metres
+Pt=10; //trasmitted 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
+//additional data given in this eg
+hr=40; //height of receiver in metre
+ht=2; //trasmittter antenna height in metres
+
+//solution
+Lp=20*log10(hr*ht/D^2);
+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);