Sum (rendezvous equation) in matlab
Mostrar comentarios más antiguos
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

Respuestas (1)
Andrei Bobrov
el 2 de Jul. de 2016
out = sum(bsxfun(@minus,x(:),x(:)'),2);
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!