why 'blsprice' is an undefined function??

When I type in the following code, the Matlab says it's an undefined function?
>> [Call, Put] = blsprice(100, 95, 0.1, 0.25, 0.5)
??? Undefined function or method 'blsprice' for
input arguments of type 'double'.
But I think 'blsprices' is a function that is in the Financial Toolbox. So is there anybody who can help me with this problem?
Thank you!

 Réponse acceptée

José-Luis
José-Luis le 4 Sep 2012

0 votes

Use the ver command to see what toolboxes you have installed. If the financial toolbox is not there, that would explain your problem. If your license permits then you need to install it
If not, then either buy it, write the function yourself or try it in a computer with the toolbox installed.

2 commentaires

RUOXI
RUOXI le 4 Sep 2012
Thank you!!!
Walter Roberson
Walter Roberson le 4 Sep 2012
Also, sometimes documented functions might be newer than the version you have installed.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by