Hi! i have a error in example file.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Max Fog
el 2 de Mzo. de 2019
Editada: Cris LaPierre
el 2 de Mzo. de 2019
what i can do ? to fix this error?
1 comentario
Geoff Hayes
el 2 de Mzo. de 2019
Max - what is infoRatioTargetReturn? Is this a function of that you have written or is it from somewhere else?
Respuesta aceptada
Cris LaPierre
el 2 de Mzo. de 2019
Editada: Cris LaPierre
el 2 de Mzo. de 2019
You are trying to call a function that is not in your current folder nor on your path.
It looks like this is the example you are trying to use:
openExample('finance/PortfolioOptimizationBenchmarkExample')
Note that the function called by this script is included in-file at the botton.
function [infoRatio,wts] = infoRatioTargetReturn(targetReturn,portObj)
% Calculate information ratio for a target-return portfolio along the
% efficient frontier
wts = estimateFrontierByReturn(portObj,targetReturn);
portRiskAct = estimatePortRisk(portObj,wts);
infoRatio = targetReturn/portRiskAct;
end
You would need to create an m-file function for this function if you want to run this example from the command window. Better to just open the live script example and run it in the editor.
Más respuestas (0)
Ver también
Categorías
Más información sobre Portfolio Optimization and Asset Allocation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!