Error in Hierarchical Risk Parity Portfolio
2 次查看(过去 30 天)
显示 更早的评论
i followed code provided on MATLAB help section under finance/create hierarchical risk parity portfolio and I get this error 'Unrecognized function or variable 'getLeafNodesInGroup'. PLease advise on what can solve this
0 个评论
回答(1 个)
Dhruv
2024-5-1
Hi Sizwe,
In the Hierarchical Risk Parity Portfolio example, the function 'getLeafNodesInGroup' is a local function and not an in-built function. Upon opening the example in MATLAB R2024a, using the command:
openExample('finance/HierarchicalRiskParityPortfolioExample')
the section titled 'Local Functions' contains the function definition of 'getLeafNodesInGroup'.
Hope this helps!
2 个评论
Zhibin Huo
2024-5-2
Hi, the local function itself also contains "getLeafNodesInGroup", so I have no idea how he solve this. May I please ask some advices?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!