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 CenterFile Exchange에서 Introduction 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