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

Upload New File

parent a15e4e9b
Branches main
No related tags found
No related merge requests found
function d = distance(Number_MS,Number_BS,PosMS,PosBS,SimStep)
d=zeros(Number_MS,Number_BS);
for i=1:Number_MS
for j=1:Number_BS
d(i,j)=sqrt((abs(PosBS(j,1)-PosMS(SimStep,2*i-1)))^2 + (abs(PosBS(j,2)-PosMS(SimStep,2*i)))^2);
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