summaryrefslogtreecommitdiff
path: root/3739/CH6/EX6.19/EX6_19.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3739/CH6/EX6.19/EX6_19.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 '3739/CH6/EX6.19/EX6_19.sce')
-rw-r--r--3739/CH6/EX6.19/EX6_19.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3739/CH6/EX6.19/EX6_19.sce b/3739/CH6/EX6.19/EX6_19.sce
new file mode 100644
index 000000000..2b8f13a51
--- /dev/null
+++ b/3739/CH6/EX6.19/EX6_19.sce
@@ -0,0 +1,22 @@
+//Chapter 6, Example 6.19, page 275
+clc
+
+//Initialisation
+f=1800 //frequency in MHz
+d=10 //distance in m
+hb=40
+hm=3
+A=132.57 //Hata model data
+B=34.4 //Hata model data
+
+//Calculation
+E2=(((1.1*log10(f))-0.7)*hm)-((1.56*log10(f))-0.8)
+lp=46.3+33.9*log10(f)-13.82*log10(hb)+(44.9-6.55*log10(hb)-E2+hm)
+L=A+B+-E2
+
+
+//Results
+printf("Path loss based on COST–Hata model,")
+printf("\n Lp = %.2f dB",lp)
+printf("\nPath loss based on Hata model,")
+printf("\n Lp = %.2f dB",L)