summaryrefslogtreecommitdiff
path: root/3739/CH6/EX6.18/EX6_18.sce
blob: e416028be74943a280bf16f2f0b75a57b13a44c2 (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
//Chapter 6, Example 6.18, page 274
clc

//Initialisation
f=420                                         //frequency in Hz
h1=40                                         //height in m
h2=5                                         //height in m
d=15                                         //distance in km

//Calculation
A=69.55+26.16*log10(f)-13.82*log10(h1)        //Hata parameters
B=44.9-6.55*log10(h1)
C=2*(log10(f*28**-1))**2+5.4
D=4.78*(log10(420))**2-18.33*log10(f)+40.94
E1=3.2*(log10(11.75*h2))**2-4.97
E2=(((1.1*log10(f))-0.7)*h2)-((1.56*log10(f))-0.8)
L3=A+B*log10(d)-D                                  //in open area;
L2=A+B*log10(d)-C                                 //in suburban area;
L1=A+B*log10(d)-E1                                 //in large cities;
L11=A+B*log10(d)-E2                                //in small cities;

//Results
printf("In large cities L1 = %.2f dB",L1)
printf("\nIn small cities L1 = %.2f dB",L11)
printf("\nIn suburban area L2 = %.2f dB",L2)
printf("\nIn open area L2 = %.2f dB",L3)