MATLAB Answers

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

1 view (last 30 days)
maatoug ayoub
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);
  5 Comments

Sign in to comment.

Accepted Answer

njj1
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)
  4 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!