this is my equation using matlab , i can't get it manually.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
maatoug ayoub
am 19 Apr. 2018
Kommentiert: maatoug ayoub
am 19 Apr. 2018
dmat = reshape(sqrt(sum((xy(a,:)-xy(a',:)).^2,2)),N,N);
5 Kommentare
Akzeptierte Antwort
njj1
am 19 Apr. 2018
Bearbeitet: njj1
am 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)
4 Kommentare
njj1
am 19 Apr. 2018
Yes, it is, but they do it in a clever, vectorized way, where they do not have any for loops to cycle through each i,j.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!