0% found this document useful (0 votes)
5 views

Wireless Networks Assignment11

Uploaded by

SYED KAMRAN ALI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Wireless Networks Assignment11

Uploaded by

SYED KAMRAN ALI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Name : Syed Kamran Ali

Roll Number : F2020019030


Subject: Wireless and communication
Submitted to: Sir Fasih Gardezi Sahib

Assignment
Answer 1 :

Probability Mass Function (PMF):

A PMF applies to discrete random variables. It's a function that assigns a probability to each possible value that the variable
can take. The sum of all these probabilities must always be equal to 1.

Example: Imagine rolling a fair die. The possible outcomes are {1, 2, 3, 4, 5, 6}, and each outcome has an equal probability of
1/6. The PMF would be a function that assigns 1/6 to each of these values.

Cumulative Distribution Function (CDF):

The CDF is also relevant to random variables, both discrete and continuous. It tells you the probability that the variable will be
less than or equal to a certain value.

Example: Continuing with the die roll example, the CDF for X = 2 would be the probability of rolling a 1 or a 2. In this case, it
would be 1/6 (probability of 1) + 1/6 (probability of 2) = 2/6.

Probability Density Function (PDF):

A PDF applies to continuous random variables. Unlike a PMF with distinct probabilities for each value, a PDF describes the
probability density across a range of values. The total probability under the entire curve of the PDF is equal to 1.

Example: Imagine measuring the heights of people. Height is a continuous variable, and the PDF would show the probability
density of different heights. There wouldn't be a specific probability for an exact height of, say, 1.7 meters, but the PDF would
indicate the probability of someone being around 1.7 meters tall.

Probability Distribution:

This is a general term for a function that describes the probabilities of different outcomes for a random variable. It can be a
PMF for discrete variables or a PDF for continuous variables.

Example :

1
Uniform distribution wwhere random variable X takes any value within a certain range with equal probability

Gaussian Distribution (Normal Distribution):

A very common probability distribution shaped like a bell curve. It's symmetrical around a central peak and describes data
where most values tend to cluster around the average, with fewer values falling further away in either direction.

Example: Many natural phenomena follow a Gaussian distribution, such as heights, weights, or test scores.

Standard Normal Distribution:

A specific type of Gaussian distribution with a mean of 0 and a standard deviation of 1. It's a standardized version of the
normal distribution.

Example: Many statistical tests use the standard normal distribution as a reference for comparing results.

Noise:

Noise is unwanted signal that interferes with the desired signal. It can be random or recurring and can come from various
sources.

Example: Static on a radio broadcast is a type of noise that disrupts the reception of the desired audio signal.

Noise Distribution:

This describes the probability distribution of the noise signal. It shows how probable different noise levels or intensities are.

Example: The noise on a telephone line might have a Gaussian distribution, indicating that most of the time the noise level is
low, with occasional spikes of higher or lower intensity.

Additive White Gaussian Noise (AWGN):

A common noise model used in signal processing. It assumes the noise is added to the signal, with each noise sample being
independent and identically distributed (i.i.d.) according to a normal distribution, and having a constant power spectral
density (meaning the noise power is the same across all frequencies).

Example: AWGN is a good model for background noise in electronic circuits or thermal noise that affects sensors.

Log Normal Distribution:

This probability distribution applies to variables that are skewed to the right, meaning there are more values on the left side of
the distribution and a longer tail towards positive values. The logarithm of the variable follows a normal distribution.

2
Example: Log normal distributions are useful for modeling income levels, stock prices, or sizes of particles in a substance.

Question 2
Plot the received power versus distance for the two-ray model using MATLAB, based on the provided formulas.

Parameters
• Frequency f = 900 MHz

• Wavelength (where c = 3 × 108 m/s)

• Transmit antenna height ht = 50 meters

• Receive antenna height hr = 2 meters

• Transmit and receive antenna gains Gt = Gr = 1 (dBi)


3
• Reference distance d0 = 1 meter

• Transmit power Pt = 0 dBm (assuming 1 mW transmit power)

Instructions
1. Define the given parameters in your MATLAB script.

2. Calculate the wavelength λ using the speed of light c and the frequency
f.

3. Define the distance vector d on a logarithmic scale.

4. Calculate the received power Pr(d) using the two-ray ground reflection model.
5. Plot the received power versus distance on a logarithmic scale.

6. Mark the critical distance dc on the plot.

7. Add labels, a title, and a legend to your plot.

Answer 2 :

% Define the given parameters

f = 900e6; % Frequency in Hz

c = 3e8; % Speed of light in m/s

ht = 50; % Transmit antenna height in meters

hr = 2; % Receive antenna height in meters

Gt = 1; % Transmit antenna gain (linear scale)

Gr = 1; % Receive antenna gain (linear scale)

Pt_dBm = 0; % Transmit power in dBm

Pt = 1e-3; % Transmit power in Watts (0 dBm = 1 mW)

d0 = 1; % Reference distance in meters

% Calculate wavelength

lambda = c / f;
4
% Define distance vector on a logarithmic scale

d = logspace(0, 5, 1000); % Distance from 1m to 100000m

% Calculate received power using the two-ray ground reflection model

Pr = Pt * (Gt * Gr * (ht * hr)^2) ./ d.^4;

% Convert received power to dBm

Pr_dBm = 10 * log10(Pr / 1e-3);

% Calculate critical distance dc

dc = 4 * ht * hr / lambda;

% Plot received power versus distance

figure;

semilogx(d, Pr_dBm, 'b-', 'LineWidth', 2);

Hold on;

% Mark the critical distance dc on the plot

yline(-60, 'r--', 'Critical Distance dc'); % Adjust -60 dBm to a reasonable y value if needed

xline(dc, 'r--', sprintf('dc = %.2f m', dc));

% Add labels, title, and legend

xlabel('Distance (m)');

ylabel('Received Power (dBm)');

title('Received Power vs Distance for Two-Ray Model');

5
legend('Received Power', 'Critical Distance dc');

grid on;

hold off;

Question 3
Assume a receiver is located 10 km from a 50 W transmitter. The carrier frequency is 6 GHz and free space propagation is
assumed, with Gt = 1 and Gr = 1.

1. Find the power at the receiver.


2. Find the magnitude of the E-field at the receiver antenna.
3. What is the receiver power in dBm?
4. If the receiver sensitivity is -96 dBm, would the receiver be able to decodethe message?

You might also like