SYED MUHAMMAD JAMEEL CMS: 37042
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');
%%varying transmitting power
Gt = 10; %tramsmitter gain
Gr = 2.51; %receiver gain
Pt =0:0.001:0.007; %tranmiting power
D = 1000; %distance
L = 1.8e9; %wavelength
Pr = Gt*Gr*Pt*(L / 4*3.14*D).^2; %friss equation formula
subplot(2,2,2)
plot(Pr,Pt);
title('output'); xlabel('Transmitting Power'); ylabel('free spcae path
loss');
%%varying Receinving antenna gain
Gt = 10; %tramsmitter gain
Gr = 0:0.001:2.51; %receiver gain
Pt = 0.001; %tranmiting power
D = 1000; %distance
L = 1.8e9; %wavelength
Pr = Gt*Gr*Pt*(L / 4*3.14*D).^2; %friss equation formula
subplot(2,2,3)
plot(Pr,Gr);
title('output'); xlabel('Receiving Gain'); ylabel('free spcae path
loss');
%%varying Transmitter antenna gain
Gt = 0:0.01:10; %tramsmitter gain
Gr = 2.51; %receiver gain
Pt = 0.001; %tranmiting power
D = 1000; %distance
L = 1.8e9; %wavelength
Pr = Gt*Gr*Pt*(L / 4*3.14*D).^2; %friss equation formula
subplot(2,2,4)
plot(Pr,Gt);
title('output'); xlabel('Transmiting Gain'); ylabel('free spcae path
loss');
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
Output Plot:
Q2: Write code for propagation over a flat specular surface?
Formula:
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');
%Varying mobile station height
d = 1000; %distance
Hb = 17.5; %base station height
Hm = 0:0.001:1.5; %mobile station height
fc = 1800e6; %frequency
FSS = fc*(Hb*Hm / d*d).^2; %flat speculat surface formula
subplot(1,2,2);
plot(FSS,Hm);
title('output Signal'); xlabel('Mobile station height'); ylabel('Flat
surface');
Output Plot:
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
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');
%Varying beta for SUburban
Rp = -61.7; %Received Power
Do = 0.16; %Reference Distance
beta = 0:0.01:3.84; % for free space
D = 1000; %Distance
CS = Rp*(Do)- 10*beta*log10(D/Do); %curved surface formula
subplot(2,2,2);
plot(CS);
title('output Signal'); xlabel('BETA free space"3.84"'); ylabel('curved
surface');
%curved and rough surface
%Varying distance
Rp = -45; %Received Power
Do = 0.16; %Reference Distance
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
beta = 2; % for free space
D = 0:10:1000; %Distance
CS = Rp*(Do)- 10*beta*log10(D/Do); %curved surface formula
subplot(2,2,3);
plot(CS);
title('output Signal'); xlabel('distance'); ylabel('curved surface');
%curved and rough surface
%Varying received power
Rp = 0:-0.01:-45; %Received Power
Do = 0.16; %Reference Distance
beta = 2; % for free space
D = 1000; %Distance
CS = Rp*(Do)- 10*beta*log10(D/Do); %curved surface formula
subplot(2,2,4);
plot(CS);
title('output Signal'); xlabel('Received power'); ylabel('curved
surface');
Output Plot:
Q4: Generate maximum allowable pathloss (Lmax)?
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
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');
%Varying Receving Antenna Gain
Gt = 12;
Gr = 0:0.01:5;
Tp = 20;
Rsen = -5;
Lmax = Tp + Gt + Gr - Rsen;
subplot(2,2,2);
plot(Lmax,Gr);
title('Output Signal'); xlabel('Receving gain'); ylabel('Max. APL');
%Varying tramitter power
Gt = 12;
Gr = 5;
Tp = 0:0.1:20;
Rsen = -5;
Lmax = Tp + Gt + Gr - Rsen;
subplot(2,2,3);
plot(Lmax,Tp);
title('Output Signal'); xlabel('Transmitter power'); ylabel('Max. APL');
%Varying Receiver senstivity
Gt = 12;
Gr = 5;
Tp = 20;
Rsen = 0:-0.01:-5; %Receiver senstivity
Lmax = Tp + Gt + Gr - Rsen;
subplot(2,2,4);
plot(Lmax,Rsen);
title('Output Signal'); xlabel('Receiver senstivity'); ylabel('Max.
APL');
Output Plot:
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
Q5: Impact of receiver sensitivity, interference Margin, shadowing,
handoff gain on Lmax?
Formula:
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');
%Impact of shadow margin on Lmax
P = 100; %transmitted carrier power
Gt = 5; %transmitter Gain
Gr = 3; %Receiving Gain
RS = 10; %receiver senstivity
Mshad = 0:0.1:10.24; %shadow margin
Li = 0.5; %interference
Gho = 12; %handoff gain
Lmax = P+Gt+Gr-RS-Mshad-Li+Gho;
subplot(3,2,2);
plot(Lmax);
title('Lmax'); ylabel('shadow margin');
%%Impact of interfence on Lmax
P = 100; %transmitted carrier power
Gt = 5; %transmitter Gain
Gr = 3; %Receiving Gain
RS = 10; %receiver senstivity
Mshad = 10.24; %shadow margin
Li = 0:0.01:0.5; %interference
Gho = 12; %handoff gain
Lmax = P+Gt+Gr-RS-Mshad-Li+Gho;
subplot(3,2,3);
plot(Lmax);
title('Lmax'); ylabel('interfence');
%Impact handoff gain on Lmax
P = 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 = 0:0.1:12; %handoff gain
Lmax = P+Gt+Gr-RS-Mshad-Li+Gho;
subplot(3,2,4);
plot(Lmax);
title('Lmax'); ylabel('handoff gain');
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7
SYED MUHAMMAD JAMEEL CMS: 37042
%Impact of receiver senstivity on Lmax
P = 100; %transmitted carrier power
Gt = 5; %transmitter Gain
Gr = 3; %Receiving Gain
RS = 0:0.01: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,5);
plot(Lmax);
title('Lmax'); ylabel('receiver senstivity');
Output Plot:
ASSIGNMNET(DR.TARIQ SHAH) BS-Telecom 7