Error in Hierarchical Risk Parity Portfolio
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Dhruv
am 1 Mai 2024
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 Kommentare
Zhibin Huo
am 2 Mai 2024
Hi, the local function itself also contains "getLeafNodesInGroup", so I have no idea how he solve this. May I please ask some advices?
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!