How can calculate this formula with matlab?
Mostrar comentarios más antiguos
I have the vectors w(1,n) and σ(n,1). How can calculate this formula?

Respuesta aceptada
Más respuestas (1)
Torsten
el 5 de Nov. de 2015
sum_total=0.0;
for i=1:(N-1)
sum_j=0.0;
for j=(i+1):N
sum_j = sum_j + w(j)*sigma(j);
end
sum_total = sum_total + w(i)*sigma(i)*sum_j;
end
sum_total = 2.0*sum_total;
Best wishes
Torsten.
Categorías
Más información sobre Resizing and Reshaping Matrices 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!