I have problems with the financial toolbox, It does not recognize the function displayportfolio

displayPortfolio(sprintf('Portfolio with %g%% Target Return', 100*TargetReturn), aBlotter, false);
Undefined function or variable 'displayportfolio'.

 Accepted Answer

If you're referring to this example, the utility function displayPortfolio is defined at the end of the live script. Because it is defined inside the live script, it is only available to the code inside the live script.

1 Comment

l am typing my code in the live script section but still got the error undefined function or variable 'displayPortfolio'. What could be the problem now? thank you
Undefined function or variable 'displayPortfolio'.

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!