How can i implement this in matlab
1 view (last 30 days)
Show older comments
r=5; re=3; ci={xi,yi,r}
Where xi, yi are random values of on grid
P is a point on grid (x,y)
d(ci,p)=sqrt((xi-x)^2+(yi-y)^2);
Then
Pcov(x,y,ci)= 1 if d(ci,p)<r-re
else exp(-0.5*(d(ci,p)-(r-re))^0.5) if r-re<d(ci,p)
else 0
3 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!