Function: plotAssetHist undefined

2 visualizzazioni (ultimi 30 giorni)
Christopher McCoy
Christopher McCoy il 29 Nov 2019
Commentato: JASINTHA il 3 Mag 2023
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 Commento
Guanjiong Zhang
Guanjiong Zhang il 29 Mar 2021
I have the same problem, please someone give some advice

Accedi per commentare.

Risposta accettata

Kavya Vuriti
Kavya Vuriti il 2 Dic 2019
Modificato: Kavya Vuriti il 2 Dic 2019
Hi,
I think supporting function named 'plotAssetHist' is missing.Try using the suppoting function given in the link.
  3 Commenti
Steven Lord
Steven Lord il 2 Mag 2023
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 il 3 Mag 2023
Thank you so much :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by