Function: plotAssetHist undefined

2 ビュー (過去 30 日間)
Christopher McCoy
Christopher McCoy 2019 年 11 月 29 日
コメント済み: JASINTHA 2023 年 5 月 3 日
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]
  1 件のコメント
Guanjiong Zhang
Guanjiong Zhang 2021 年 3 月 29 日
I have the same problem, please someone give some advice

サインインしてコメントする。

採用された回答

Kavya Vuriti
Kavya Vuriti 2019 年 12 月 2 日
編集済み: Kavya Vuriti 2019 年 12 月 2 日
Hi,
I think supporting function named 'plotAssetHist' is missing.Try using the suppoting function given in the link.
  3 件のコメント
Steven Lord
Steven Lord 2023 年 5 月 2 日
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.
JASINTHA
JASINTHA 2023 年 5 月 3 日
Thank you so much :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by