Limited time offer

Get 25% off your order

Use the code below at checkout — offer expires soon.

Your promo codeNURSE24
25%
Expires in: 10:00
Claim my 25% discount
LIMITED OFFER Get 25% off — use code BESTW25 | No AI No Plagiarism On-Time Delivery Free Revisions Claim Now
Skip to content
Get Help Now
Uncategorized

MATLAB programming language

succurely

Using MATLAB programming language, write a program for modelling the path profile corresponding to

AssignmentTutorOnline

the data set given in following code fragment. An example radio path profile is shown in Figure 2 below.

  1. Refer to lecture 4 notes for the method and the formulas required for constructing the path profile. You may

start from the following code. Cut this code and paste as the starting code for your Matlab program. It

provides the path profile that you need to use. Then follow the remaining steps to develop your path profile

program.

%————————————————————————–

clear all

clc

%————————————————————————–

% Load path elevation file:

%————————————————————————–

%load(‘YG_MTD’);

%D = 21.0;

%load(‘HV_MTD’);

%D = 27.9;

load(‘KB_MTD’);%this step loads the profile of the terrain for you in the

array ‘prof’

%You are required to use the array

D = 70.5;%all the points in the array ‘prof’ are spread over this distance

in km

%load(‘BW_MTM’)

%D = 85.5;

  1. Use Matlab to find the length of your array in ‘prof’(ie, find how many items are in the file you have just

uploaded in Matlab). You need this length to plot your path profile properly. Note, ‘D’ is the total distance

between the transmitter and receiver.

  1. Using ‘D’ from the code fragment above, determine the separation between each entry in the vector ‘prof’.

You need this as your x-axis for plotting.

  1. Calculate ‘b’ for the earth bulge using K=4/3 and your data. Remember the formula.

m

12.76K

d d

b

1 2



You will have to choose your distances to achieve the bulge. Note

D  d1  d2

  1. You may need to plot the path profile to see how the terrain looks like so that you can choose the heights of

your antennas well. Choose the heights h1 and h2 of your antennas for the first and second sites (they

should be more than 10m and less than 60m).

  1. Write the code to determine the antenna height h1 of the first site in relation to the first point of the path

profile. Use the figure below as guide on how to determine this height h1.

  1. Write the code to determine the antenna height h2 of the second site in relation to the last point of the path

profile. Use the figure below as guide on how to determine this height h2.

  1. Construct the line of site and determine its equation using your data. Also superimpose the earth bulge on