Skip to content
Snippets Groups Projects
Commit 551eb367 authored by Ramsha Narmeen's avatar Ramsha Narmeen
Browse files

Upload New File

parent e5a050c5
Branches main
No related tags found
No related merge requests found
function SINR = SINR_function(Number_MS,Number_BS,RSS, PL, N_W,BS_assoc,Pt,Pt_FlyBS)
SINR=zeros(Number_MS,1);
NI=zeros(Number_MS,1);
for i=1:Number_MS
for j=1:Number_BS
if BS_assoc(i,2)~=j
NI(i,1) = NI(i,1) + 10.^-3*10.^(RSS(i)/10);
end
end
NI(i,1) = NI(i,1) + N_W;
NI(i,1)=10*log10(NI(i,1)/0.001);
for j=1:Number_BS
if BS_assoc(i,2)==j
if j<=4
SINR(i,1)=Pt-PL(i,BS_assoc(i,2))-NI(i,1);
end
if j>4
SINR(i,1)=Pt_FlyBS-PL(i,BS_assoc(i,2))-NI(i,1);
end
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment