How can i implement this in matlab

2 visualizzazioni (ultimi 30 giorni)
syed ali
syed ali il 30 Apr 2018
Commentato: Stephan il 1 Mag 2018
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 Commenti
syed ali
syed ali il 30 Apr 2018
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

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Probability Density Functions in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by