Exp 1
Exp 1
:01
Code:
clc;
clear all;
Hbts= 40; %Height measured from the base of the BTS tower to the radiation centerline
Htav= 300; %Height of the average terrain (from 3 Km to 15 km distance from the BTS)
display('Hata-Okumura Model');
aHm=3.2*(log10(11.75*Hm))^2-4.97;
B = 44.9 - 6.55*log10(Hb);
C=0;
PL=A+B*log10(d);
subplot(2,1,1)
plot(d,PL,'r','LineWidth',2);
title("Hata-Okumura Path Loss Model for : ' 'Big City (Urban model)", 'fontsize',18);
xlabel('Distance in Kilometers','fontsize',18);
ylabel('Path Loss (dB)','fontsize',18);
Pr = 10*log10(Pt*1000)+Gt-PL
subplot(2,1,2)
plot(d,Pr,'r','LineWidth',2);
xlabel('Distance - Kilometers','fontsize',18);
Output: