Function: plotAssetHist undefined

14 views (last 30 days)
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 ( 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,
  1 Comment
Guanjiong Zhang
Guanjiong Zhang on 29 Mar 2021
I have the same problem, please someone give some advice

Sign in to comment.

Accepted Answer

Kavya Vuriti
Kavya Vuriti on 2 Dec 2019
Edited: Kavya Vuriti on 2 Dec 2019
I think supporting function named 'plotAssetHist' is missing.Try using the suppoting function given in the link.

More Answers (0)


Find more on Portfolio Optimization and Asset Allocation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by