How can calculate this formula with matlab?
Ältere Kommentare anzeigen
I have the vectors w(1,n) and σ(n,1). How can calculate this formula?

Akzeptierte Antwort
Weitere Antworten (1)
Torsten
am 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.
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!