PROJECT 1 To 5
PROJECT 1 To 5
PROJECT 1 To 5
d = 10 : 10 : 100;
nd = length(d);
f1=900;
f2=1800;
1
figure(2)
plot(d, PathlossWatt1, 'b-o', 'LineWidth', LineWidth,
'MarkerSize', MarkerSize)
hold on
plot(d, PathlossWatt2, 'm-^', 'LineWidth', LineWidth,
'MarkerSize', MarkerSize)
hold off
legend('900 MHz Carrier frequency','1800 MHz Carrier
frequency');
xlabel('Distance (m)')
ylabel('Pathloss (W)')
grid
Results
Figure 1
Figure 2
Results Discussion
Conclusion
2
PROJECT 2.
TITTLE: SIMULATION OF ADDITIVE WHITE GAUSSIAN NOISE (AWGN)
Aim: To simulate the Shannon capacity of AWGN channel
Objective: To analyse the Shannon capacity performance of an AWGN channel
Methodology: The Matlab code 2 was computed and ran to generate the result in
Figure 1
MATLAB CODE 2 FOR THE CAPACITY OF ADDITIVE WHITE GAUSSIAN NOISE
clear all;
for snri=1:length(snrdb)
snr = 10^(snrdb(snri)/10); %convert snr in db to watt
sigma2=Es/snr; %noise power
C_awgn(snri)=B*log2(1+snr/B); %capacity same as
end
%B*log2(1+Es/sigma2/B);
LineWidth = 1.5;
MarkerSize = 6;
figure;
%plot graph capacity vs SNR
3
Results and its Analysis: Figure 3 is the simulation results produced from the
running of the MATLAB code and analysed as follows:
Figure3: Capacity of AWGN against SNR ranges from 0 to 30 dB for a free space
channel.
Conclusion
4
PROJECT 3.
TITTLE: SIMULATION OF A SINGLE RUN SMALL SCALE (RAYLEIGH) FADING
CHANNEL
Aim: To simulate the Shannon capacity of a Single input single output (SISO) mobile
wireless channel.
Objective: To analyse the Shannon capacity of a single run SISO wireless channel
Methodology: The Matlab code 3 was computed and ran to generate the result in
Figure 2
MATLAB CODE 3 FOR THE CAPACITY OF A SISO RALEIGH FADING CHANNEL
clear all;
snrdb=0:5:30;
% transmit power
Es=100;
%bandwidth
B=1;
%number of antennas
nt=1;
nr=1;
for snri=1:length(snrdb)
%noise power
sigma2=Es/snr;
h=complex(sqrt(0.5)*randn(nr,nt),sqrt(0.5)*randn(nr,nt));
%hsd=(randn(nr,nt)+j*randn(nr,nt))/sqrt(2);
%Instantaneous capacity
C(snri)=B*log2(1+Es*abs(h)^2/sigma2/B);
end
LineWidth = 1.5;
MarkerSize = 6;
figure;
5
%plot graph capacity vs SNR
Result and Analysis: Figure 4 is the simulation results produced from the running of
the MATLAB code 3 and analysed as follows:
Figure 1: Capacity of a single run small scale (slowly varying) Rayleigh fading
channel for a typical mobile wireless SISO system against SNR ranges from 0 to
30 dB.
Conclusion
6
PROJECT 4.
TITTLE: SIMULATION OF AN ERGODIC CAPACITY OF A SMALL SCALE
(RAYLEIGH) FADING CHANNEL
Aim: To simulate the Shannon Ergodic capacity of a Single input single output (SISO)
mobile wireless channel.
Objective: To analyse and appreciate the need for Ergodic capacity of a single run
SISO wireless channel compared to a single run capacity in Project 3
Methodology: The Matlab code 3 was computed and ran to generate the result in
Figure 1
MATLAB CODE 4 FOR THE ERGODIC CAPACITY OF A SISO RALEIGH FADING
CHANNEL
clear all;
snrdb=0:10:100; %-10:5:50:100;
% transmit power
Es=1;
%bandwidth
B=1;
%number of antennas
nt=1;
nr=1;
for snri=1:length(snrdb)
%noise power
sigma2=Es/snr;
for i=1:cunt
7
h=complex(sqrt(0.5)*randn(nr,nt),sqrt(0.5)*randn(nr,nt));
%hsd=(randn(nr,nt)+j*randn(nr,nt))/sqrt(2);
%Instantaneous capacity
I_rayleigh(i)=B*log2(1+log2(1/sigma2/B));
end
end
LineWidth = 1.5;
MarkerSize = 6;
figure;
%plot graph capacity vs SNR
8
Result and Analysis: Figure 5 is the simulation results produced from the running of
the MATLAB code 4 and analyzed as follows:
9
PROJECT 5.
TITTLE: DETERMINATION OF COVERAGE DISTANCE OF A CELL
Aim: To determine the coverage distance and area of a cell using free space
propagation model
Objective: To obtain the transmit power variation impact on the cell coverage distance
and to determine the area from the distance obtained.
Methodology:
L system loss factor not related to propagation, e.g. loss due to transmission line, hardware etc
1 .
10
is assumed to be 0.8 .
The Matlab code was computed and ran to generate the result in Figure 2
MATLAB CODE 6 FOR THE CAPACITY OF ADDITIVE WHITE GAUSSIAN NOISE
d1 = zeros(nd, 1);
d2 = zeros(nd, 1);
for id = 1 : nd
d1(id)=d1(id)+sqrt((Gt*Gr*Wavelength1^2*(10^(pt(id)/10))/(10
^(pr(id)/10))*16*(pi^2)));
d2(id)=d2(id)+sqrt((Gt*Gr*Wavelength2^2*(10^(pt(id)/10))/(10
^(pr(id)/10))*16*(pi^2)));
end
LineWidth = 1.5;
MarkerSize = 6;
figure(6)
plot(pt, d1, 'b-o', 'LineWidth', LineWidth, 'MarkerSize',
MarkerSize)
hold on
plot(pt, d2, 'g-s', 'LineWidth', LineWidth, 'MarkerSize',
MarkerSize)
hold off
11
legend('900 MHz Carrier frequency', '1800 MHz Carrier
frequency');
xlabel('Transmit power (dB)')
ylabel('coverage distance (m)')
grid
figure(7)
plot(pr, d1, 'b-o', 'LineWidth', LineWidth, 'MarkerSize',
MarkerSize)
hold on
plot(pr, d2, 'g-s', 'LineWidth', LineWidth, 'MarkerSize',
MarkerSize)
hold off
legend('900 MHz Carrier frequency', '1800 MHz Carrier
frequency');
xlabel('Receiv power (dB)')
ylabel('coverage distance (m)')
grid
12
Results and Discusion:
13
Figure 8: Transmit power against the coverage Areas
Conclusion
14