Function: plotAssetHist undefined

Hi,
To do a CVaR Portfolio Optimization I want to create histograms of the asset returns of some of the assets in my dataset.
The instructions on Mathworks (link to example) tell me to do this with the function plotAssetHist. However, when I type the command into my command window it tells me that the function is undefined.
Does someone know what could cause this problem? I have installed all the necessary toolboxes.
Thanks in advance and regards,
Chris
[SL: converted text of link into a link]

 采纳的回答

Kavya Vuriti
Kavya Vuriti 2019-12-2
编辑:Kavya Vuriti 2019-12-2

0 个投票

Hi,
I think supporting function named 'plotAssetHist' is missing.Try using the suppoting function given in the link.

3 个评论

I too have the same error. Where can I find the link for the supporting function ? Thank you
Scroll down in the example (linked in the original question) to the Supporting Functions section. The plotAssetHist helper function is one of the supporting functions defined in that section. You would need to copy that helper's code into a function file or a local function in a script / function / class file to be able to use it outside that example.
Thank you so much :)

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Calendar 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by