Skip to content

Commit

Permalink
Update findPath2.m
Browse files Browse the repository at this point in the history
  • Loading branch information
aelgabli authored Jul 10, 2020
1 parent 21506af commit cb6b6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions findPath2.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

for n=1:N
d_square_central(n)=(x(n)-x(center))^2+(y(n)-y(center))^2;
P_central(n)= 1/2*d_square_central(n)*eta*B*2^(2*R/B);
P_central(n)= 1/2*d_square_central(n)*eta*B*(2^(2*R/B)-1);
end


Expand All @@ -34,7 +34,7 @@
for m=1:N
if(n~=m)
d_square(n,m)=(x(n)-x(m))^2+(y(n)-y(m))^2;
P(n,m)= d_square(n,m)*eta*B*2^(R/B);
P(n,m)= d_square(n,m)*eta*B*(2^(R/B)-1);
end
end
end
Expand All @@ -60,4 +60,4 @@

%kkk=1;



0 comments on commit cb6b6f7

Please sign in to comment.