Portfolio optimization - quad prog function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have a function mean_var_portopt1 (here attached). I am trying to call the function by writing:
targetreturn=0.07
% Determine the efficient portfolio weights given the target return.
[Weff]= mean_var_portopt1(targetreturn, Rets);
Rets is a 3740x5 matrix of asset returns. As a result, I should get a 5-element column vector with asset weights but instead I get a 5x5 matrix, why is that?
Thanks!
3 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Portfolio Optimization and Asset Allocation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!