0% found this document useful (0 votes)
4 views3 pages

Exp6 Output

The document presents a MATLAB code that simulates the relationship between mobile speed and handoffs, including parameters such as reuse factor and call drop counts. It generates an observation table displaying the number of handoffs, call drops, and outage percentages for different mobile speeds. Additionally, it includes two bar plots illustrating the number of handoffs and outage percentages against mobile speeds.

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)
4 views3 pages

Exp6 Output

The document presents a MATLAB code that simulates the relationship between mobile speed and handoffs, including parameters such as reuse factor and call drop counts. It generates an observation table displaying the number of handoffs, call drops, and outage percentages for different mobile speeds. Additionally, it includes two bar plots illustrating the number of handoffs and outage percentages against mobile speeds.

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/ 3

Name = Yash Khanderao Patil

Roll No = 27
Batch = B

Matlab Code
%% Parameters

% Reuse factor (constant in this experiment)

reuse_factor = 3;

% Mobile Speeds in m/s

mobile_speeds = [50, 100];

% Simulated Output Data (based on expected behavior)

% You can adjust these to match simulator results if available

num_handoffs = [4, 10]; % Number of handoffs increases with speed

call_drops = [1, 4]; % Simulated call drop count

total_calls = 50; % Assume 50 total calls to calculate %age

outage_percentage = (call_drops / total_calls) * 100;

%% Display Observation Table

fprintf("Observation Table:\n");

disp(table(mobile_speeds', num_handoffs', call_drops', outage_percentage', ...

'VariableNames', {'Mobile_Speed_mps', 'Num_Handoffs', 'Call_Drops', 'Outage_%'}))

%% Plot 1 - Handoffs vs Speed

figure;

subplot(1,2,1);

bar(mobile_speeds, num_handoffs, 'FaceColor', [0.2 0.6 0.8]);

title('Number of Handoffs vs Mobile Speed');

xlabel('Mobile Speed (m/s)');

ylabel('Number of Handoffs');

grid on;

%% Plot 2 - Outage % vs Speed

subplot(1,2,2);
bar(mobile_speeds, outage_percentage, 'FaceColor', [0.9 0.4 0.4]);

title('Outage Percentage vs Mobile Speed');

xlabel('Mobile Speed (m/s)');

ylabel('Outage Percentage (%)');

grid on;

Output

You might also like