# this is my equation using matlab , i can't get it manually.

1 view (last 30 days)
maatoug ayoub on 19 Apr 2018
Commented: maatoug ayoub on 19 Apr 2018
dmat = reshape(sqrt(sum((xy(a,:)-xy(a',:)).^2,2)),N,N);

maatoug ayoub on 19 Apr 2018
this is a part of the script

njj1 on 19 Apr 2018
Edited: njj1 on 19 Apr 2018
This looks like it's the distance from each (x,y) pair to every other (x,y) pair.
A_{i,j} = \sqrt{(x_i - x_j)^2}, where x = (x,y)
maatoug ayoub on 19 Apr 2018
thank you my friend now i untrestand it