what is Matlab code to plot the path loss from 0 to 10 km using Hata model, assuming fc= 900 MHz in an urban environment, mobile antenna height is 1.5 m, and base station antenna height are 30 and 200 meter, respectively.
MATLAB CODE:
clc
clear all
close all
d = 0:0.001:10; % Distance between mobile and base
stations in Kilometer
hM = 1.5; % Mobile Station antenna height in meteres
hB = 30; % Base Station antenna height in meteres
hB1 = 200; % Base Station antenna height in meteres
f = 900; % Frequency of Transmission in MHz
CH = 3.2*(log10(11.75*hM))^(2) - 4.97;
% Path Loss
PL = 69.55 + 26.16*log10(f) - 13.82*log10(hB) - CH + (44.9 -
6.55*log10(hB))*log10(d);
PL1 = 69.55 + 26.16*log10(f) - 13.82*log10(hB1) - CH + (44.9 -
6.55*log10(hB1))*log10(d);
plot(d,PL)
xlabel('Distance d (Km)')
ylabel('Path Loss (dB)')
% title('Path Loss for hB = 30 m')
grid on
hold on
plot(d,PL1)
xlabel('Distance d (Km)')
ylabel('Path Loss (dB)')
grid on
legend('Path Loss in dB for hB = 30 m','Path Loss in dB for hB = 200 m')
OUTPUT:
what is Matlab code to plot the path loss from 0 to 10 km using Hata...
Use Hata model, assuming that carrier frequency is 900 MHz, mobile antenna height is 1.5 m, and base station antenna height is 30 meter, determine the required transmit power level to obtain a 5 km cell radius when the receiver sensitivity is −104 dBm
Use the Okumura–Hata model to compute the path loss in dB for a suburban environment, with fc=900 MHz, ht=45 m, hr =3 m, and d=5 km.
CODE GIVEN
% Create a program to plot the motion of the ping pong ball with
drag.
% The program will take inputs for velocity in m/s and angle of
launch.
% note that with a high speed camera I estmated a launch speed
for a ping
% pong ball could be 30 m/s.
vel=30; %m/s
angle=60;
% convert the degrees into radians so MATLAB likes it
angle=angle*pi/180;
% set initial values (time, distance, mass, gravity, drag)
x(1)=0; % meters...