Hata Model

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

clc;

clear all;

close all;

pt=10^3;

f=900*10^6;

ht=30;

hr=1;

gt=2,gr=2;

d=100:100:5000;

lam=3*10^8/f;

#free space

pr=(pt*gt*gr*lam*lam)./((4*pi.*d).^2);

prdb=10*log10(pr);

#ground reflection

pg=(pt*gt*ht^2*hr^2)./((d).^4);

pgdb=10*log10(pg);

#plot(d,prdb,'r',d,pgdb,'g');

#hata model

ahr=(1.1*log10(900)-0.7)*hr-(1.56*log10(900)-0.8);

loss=69.55+26.16*log10(900)-ahr-13.82*log10(ht)+(44.9-6.55*log10(ht))*log10(d/1000);

ptdb=10*log10(pt);

phdb=ptdb-loss;

plot(d/1000,prdb,'r',d/1000,pgdb,'g',d/1000,phdb,'b');

xlabel('Distance (Km)');

ylabel('Recived power(db)');

title('Recived Power VS Distance');

legend(first='Free space', second='Ground Reflection', third='Hata model');


clc;

clear all;

close all;

pt=10^3;

f=900*10^6;

ht=30;

hr=1;

gt=2,gr=2;

d=100:100:5000;

lam=3*10^8/f;

ptdb=10*log10(pt);

#free space
pr=(pt*gt*gr*lam*lam)./((4*pi.*d).^2);

prdb=10*log10(pr);

pldb=ptdb-prdb;

#ground reflection

pg=(pt*gt*ht^2*hr^2)./((d).^4);

pgdb=10*log10(pg);

pgldb=ptdb-pgdb;

#hata model

ahr=(1.1*log10(900)-0.7)*hr-(1.56*log10(900)-0.8);

loss=69.55+26.16*log10(900)-ahr-13.82*log10(ht)+(44.9-6.55*log10(ht))*log10(d/1000);

plot(d/1000,pldb,'r',d/1000,pgldb,'g',d/1000,loss,'b');

xlabel('Distance (Km)');

ylabel('Path loss(db)');

title('Path Loss VS Distance');

legend(first='Free space', second='Ground Reflection', third='Hata model');

You might also like