MATLABPortfolio
MATLABPortfolio
MATLAB Portfolio
Introduction
In the week 5 and 6 computer labs we investigated the simulation and modelling
of the large scale and small scale fading effects.
The large scale fading is due to the attenuation of the signal as it propagation
over large distances and diffracts around large objects within the propagation
environment. Small scale fading on the other hand is due to the constructive and
destructive interference of multipath signals.
This portfolio requires the further investigation into these effects building on
what you have already seen in the labs, and then compiling them into the portfolio.
1.1 Part A
Complete this section within the %%Part A label inside portfolioLarge.m.
1. Generate one simulated instance of the path loss with shadowing across the
distances of 100 m to 10 km. The simulation should show the path loss with
shadowing of 25 samples at equally spaced intervals between 100 m and 10
km. Assume that the path loss exponent is equal to 2.5, and that the power
loss at a distance 100 m away from the transmitter was reduced by a factor
of 107 . Assume also that the standard deviation of the shadowing was equal
to 6 dB.
2. Represent this simulation on a suitable scatter plot, and overlay the path
loss without shadowing onto the same figure for comparison.
3. Provide a short written response explaining what was done to generate the
Xσ component.
1.2 Part B
Complete this section within the %%Part B label inside portfolioLarge.m. Upon
execution of portfolioLarge.m, some variables were loaded into the workspace,
these are,
• d0 This is the reference distance from the transmitter. The units are in
meters.
• L0 This is the reference path loss as measured at d0. The units are in dB.
• d This vector corresponds to the distances between transmitter and receiver
at which a measurement was taken. The units are in meters.
• LdBShadow This is matrix stores the data captured in a measurement cam-
paign. Each row of the matrix corresponds to a new measurement trial. The
units are in dB.
Your task is to
1. Present the data on a suitable scatter plot.
2. Calculate and document your procedure in calculating the average path loss
as a function of distance.
3. Plot the average path loss and overlay it on top of the original data.
4. Estimate the path loss exponent and document the method that was used
to calculate this value.
5. Calculate the expected path loss if the receiver is at a distance of 11 km
away from the transmitter.
6. Estimate the standard deviation of the shadowing component, and document
the procedure used.
2
and fD is the maximum Doppler spread, Ts is the sampling period, n is the sample
index, and θ, αm and βm are random variables uniformly distributed over the
interval [0, 2π).
The envelope of h(nTs ) will be Rayleigh distributed when a suitably large
number of multiple paths, M , causes hI (nTs ) and hQ (nTs ) to converge to the
Normal distribution as per the central limit theorem.
2.1 Part A
The coding component of this section needs to be compiled into the %% Part A
section of the file portfolioSmall.m.
2.2 Part B
The coding component of this section needs to be compiled into the %% Part B
section of the file portfolioSmall.m.
The Jake’s method of generating Rayleigh fading very reliably generates fading
channels that have very low cross correlation. This means that the fading generated
in one instance has very low statistical dependence with another instance. The
correlation coefficient is a number between -1 and 1 that quantifies this similarity,
where a value of 1 means perfect correlation, the value of -1 means perfect anti-
correlation and 0 means no correlation.
1. Generate two separate instances of Rayleigh fading using the exact same
parameters as Part A and calculate their cross correlation. Demonstrate
that the correlation coefficient between these two instances is close to zero.
Plot the envelopes of both simulated channels within one figure.
3. For each pair of correlated Rayleigh envelopes, plot their envelopes on top
of each other.