How can calculate this formula?
Mostrar comentarios más antiguos
I have a matrix of price time series (p1,p2...pn) and their weights w(1,n). How can calculate this formula?

Respuestas (1)
v = w(:) .* sigma(:);
sigmaIndex = v.' * rho * v;
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!