0% found this document useful (0 votes)
2 views2 pages

Exp 7 Output

The document contains MATLAB code for analyzing communication parameters, specifically focusing on outage probability, level crossing rate (LCR), and average fade duration (ADF) in Rayleigh fading channels. Key parameters include maximum Doppler frequency, RMS value of the received signal, and threshold voltage. The code also includes a plot of the outage probability against envelope levels.

Uploaded by

prasadraskar5775
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)
2 views2 pages

Exp 7 Output

The document contains MATLAB code for analyzing communication parameters, specifically focusing on outage probability, level crossing rate (LCR), and average fade duration (ADF) in Rayleigh fading channels. Key parameters include maximum Doppler frequency, RMS value of the received signal, and threshold voltage. The code also includes a plot of the outage probability against envelope levels.

Uploaded by

prasadraskar5775
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/ 2

Name = Yash Khanderao Patil

Roll No = 27
Batch = B

Matlab Code
%% Parameters

fm = 100; % Maximum Doppler frequency in Hz

sigma = 1; % RMS value of received signal (arbitrary)

gamma = 0.7; % Threshold voltage

M = 2; % Number of channels

rho = gamma / sigma; % Normalized threshold

%% Outage Probability (Rayleigh)

R = linspace(0, 2, 100); % Range of envelope values

outage_prob = 1 - exp(-(R.^2) ./ (2 * sigma^2));

%% Level Crossing Rate (LCR) for SC and MRC

LCR_SC = fm * sqrt(pi) * M .* gamma ./ sqrt(sigma) .* ...

exp(-gamma.^2 ./ (2 * sigma)) .* (1 - exp(-gamma.^2 ./ (2 * sigma))).^(M - 1);

LCR_MRC = sqrt(2 * pi * (0 + 1)) * fm * rho .* ...

exp(-(0 + 1) * rho.^2) .* besseli(0, 2 * rho * sqrt(0 * (0 + 1)));

%% Average Fade Duration (ADF)

ADF_SC = sqrt(rho) .* exp((gamma.^2 ./ (2 * sigma)) - 1) ./ ...

(sqrt(2 * pi) * fm * M * gamma);

ADF_MRC = (exp(rho.^2) - 1) ./ (rho * fm * sqrt(2 * pi));

%% Plot Outage Probability

figure;

plot(R, outage_prob, 'LineWidth', 2);

title('Outage Probability (Rayleigh)');

xlabel('R (Envelope Level)');

ylabel('P(R ≤ r)');
grid on;

Output

You might also like