How can i implement this in matlab

조회 수: 2 (최근 30일)
syed ali
syed ali 2018년 4월 30일
댓글: Stephan 2018년 5월 1일
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
syed ali
syed ali 2018년 4월 30일
How can i implement this logic 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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Probability Density Functions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by