SINR calculation in power control

by

 

It calculates the SINR values for a power control wireless 802.11 scenario

analysis.m
clc
clear all
Ri=100;
Rt=.5*Ri;
n=2.375;
lemda=.015;
pt=.7;
PT=3.536805e-04;
d1=(.1*Ri):(.5*Ri);
for i=1:length(d1)
    d=d1(i);
A=Ri^2*(2*asin(d/2/Ri)+sin(2*asin(d/2/Ri)));

F = @(x)1./x.^2.*acos((Ri.^2-d.^2-x.^2)./(2.*x.*d));
I(i) =db(pt*lemda*PT*quad(F,Ri-d,Ri))/2; 
SINR(i)= db(PT/d^n)/2-I(i);
end
%plot(d1/Ri,I)
plot(d1/Ri,SINR)

Contact us