this is my equation using matlab , i can't get it manually.
1 回表示 (過去 30 日間)
古いコメントを表示
dmat = reshape(sqrt(sum((xy(a,:)-xy(a',:)).^2,2)),N,N);
5 件のコメント
採用された回答
njj1
2018 年 4 月 19 日
編集済み: njj1
2018 年 4 月 19 日
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 件のコメント
njj1
2018 年 4 月 19 日
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.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Genetic Algorithm についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!