How can calculate this formula with matlab?
Afficher commentaires plus anciens
I have the vectors w(1,n) and σ(n,1). How can calculate this formula?

Réponse acceptée
Plus de réponses (1)
Torsten
le 5 Nov 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.
Catégories
En savoir plus sur Platform and License dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!