Sum (rendezvous equation) in matlab
古いコメントを表示
I want to write the below equation(rendezvous) in matlab, i belongs to {1,2,…,7} , write a for loop for i and a switch for j, but I don’t know how to write the sum properly, will you help

回答 (1 件)
Andrei Bobrov
2016 年 7 月 2 日
out = sum(bsxfun(@minus,x(:),x(:)'),2);
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!