Q1: Write Code For Free Space Path Loss Mode (FSPL) Using Friss Equation?
Q1: Write Code For Free Space Path Loss Mode (FSPL) Using Friss Equation?
Q1: Write code for free space path loss mode (FSPL) using friss equation?
Formula:
Code:
%%FRISS EQUATION FSPL
%%vaying distance
Gt = 10; %tramsmitter gain
Gr = 2.51; %receiver gain
Pt =0.001; %tranmiting power
D = 0:10:1000; %distance
L = 1.8e9; %wavelength
Pr = Gt*Gr*Pt*(L / 4*3.14*D).^2; %friss equation formula
subplot(2,2,1)
plot(Pr,D);
title('output'); xlabel('Distance'); ylabel('free spcae path loss');
Output Plot:
Code:
%%FLAT SPECULAR SURFACE
%Varying base station height
d = 1000; %distance
Hb = 0:0.1:17.5; %base station height
Hm = 1.5; %mobile station height
fc = 1800e6; %frequency
FSS = fc*(Hb*Hm / d*d).^2; %flat speculat surface formula
subplot(1,2,1);
plot(FSS,Hb);
title('output Signal'); xlabel('Base station height'); ylabel('Flat
surface');
Output Plot:
Q3: Write code for propagation over curved and rough surface?
Formula:
Code:
%curved and rough surface
%Varying beta for free space
Rp = -45; %Received Power
Do = 0.16; %Reference Distance
beta = 0:0.01:2; % for free space
D = 1000; %Distance
CS = Rp*(Do)- 10*beta*log10(D/Do); %curved surface formula
subplot(2,2,1);
plot(CS);
title('output Signal'); xlabel('BETA free space "2"'); ylabel('curved
surface');
Output Plot:
Formula:
Code:
%Max.allowable pathloss
%Varying Transmitter Antenna Gain
Gt = 0:0.01:12;
Gr = 5;
Tp = 20;
Rsen = -5;
Lmax = Tp + Gt + Gr - Rsen;
subplot(2,2,1);
plot(Lmax,Gt);
title('Output Signal'); xlabel('Tranmitter gain'); ylabel('Max. APL');
Output Plot:
Code:
P = 0:0.01:100; %transmitted carrier power
Gt = 5; %transmitter Gain
Gr = 3; %Receiving Gain
RS = 10; %receiver senstivity
Mshad = 10.24; %shadow margin
Li = 0.5; %interference
Gho = 12; %handoff gain
Lmax = P+Gt+Gr-RS-Mshad-Li+Gho;
subplot(3,2,1);
plot(Lmax);
title('Lmax'); ylabel('power');
Output Plot: