Financial Instruments Toolbox Tutorial - Error on Intenvset?

I'm trying to run through the financial instruments toolbox tutorial for pricing European options. See the link:
Everything works until I get to this line of code:
RateSpec = intenvset('Compounding',Compounding,'StartDates', StartDates,...
'EndDates', EndDates, 'Rates', Rates,'ValuationDate', ValuationDate);
I get the following error: Undefined function 'intenvset' for input arguments of type 'char'.
QUESTION - Why am I getting this error? I'm literally copying and pasting from the tutorial! Help!
Thanks, Adam
EDIT - I misspoke at first. This is for the financial instruments toolbox, not the financial toolbox.

 採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 5 月 18 日

0 投票

You may not have the Financial Toolbox installed. Confirm by typing VER:
>> ver
and check if you can see it in the list. If it is present then try:
>> which -all intenvset
what does it say? If nothing comes up you probably don't have it installed.

4 件のコメント

Adam
Adam 2013 年 5 月 18 日
Thanks Shashank. I did what you asked. It looks like it installed but it still can't find intenvset. See below:
Shashank Prasanna
Shashank Prasanna 2013 年 5 月 19 日
Financial Instruments Toolbox has a dependency on Financial Toolbox but it is not listed in the output of ver in the image. Make sure you installed this right.
If this is indeed a path issue, the following should set it right.
>> restoredefaultpath
>> rehash toolboxcache
If not you may need to contact installation support at the mathworks (which is free and extended to student releases as well) to get this issue resolved.
Adam
Adam 2013 年 5 月 19 日
Alright, thanks. I just did what you said and got the same error. I'll call installation support and get their help. Thanks.
Adam
Adam 2013 年 5 月 19 日
Ok, I purchased the financial toolbox and everything worked out. It wasn't clear to me that I couldn't simply purchase the financial instruments toolbox. Maybe that should be made more clear on the website.
Anyway, problem solved. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction 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