Professional Documents
Culture Documents
W&MC Lab No-5
W&MC Lab No-5
W&MC Lab No-5
TASK NO-1:
SOLUTION:
MATLAB CODE:
clc;
clear all;
%FOR RADIUS:
R = input('enter the radius = ');
%FOR REUSE DISTANCE;
D = input('enter the reuse distance = ');
%FOR AREA:
area = N*pi*R;
disp('number of cells = ');
disp(N);
disp('area');
disp(prettify(area));
%FOR PLOT
plot(D,N,'-*')
OUTPUT:
enter the radius = 1800
enter the reuse distance = 20000:1000:30000
number of cells =
Columns 1 through 8
41.1523 45.3704 49.7942 54.4239 59.2593 64.3004 69.5473 75.0000
Columns 9 through 11
>>
TASK NO-2:
SOLUTION:
MATLAB CODE:
clc;
clear all;
%FOR NO OF CELLS;
N = 5:5:30;
C = (M*K).*N;
bar(N,C)
OUTPUT:
TASK NO-3:
SOLUTION:
PART A:
MATLAB CODE:
clc;
clear all;
disp('finding no of channels')
nc = TB/CB;
OUTPUT:
finding no of channels
no of total channels are = 660
enter cell reuse = 4
total no of channels with cell reuse = 4 & 165
PART B:
MATLAB CODE:
clc;
clear all;
disp('finding no of channels')
nc = TB/CB;
OUTPUT:
finding no of channels
no of total channels are = 660
enter cell reuse = 7
total no of channels with cell reuse = 7 & 94.2857
PART C:
MATLAB CODE:
clc;
clear all;
OUTPUT:
The values are = [ -1504.09, -2004.09, -2504.09, -3004.09, -3504.09, -4004.09, -4504.09, -
5004.09]/n >>
PART B:
MATLAN CODE:
clc;
clear all;
OUTPUT:
The values are = [ -1504.09, -2004.09, -2504.09, -3004.09, -3504.09, -4004.09, -4504.09, -
5004.09]/n >>
CONCLUSION: