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.

 Accepted Answer

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 Comments

Thanks Shashank. I did what you asked. It looks like it installed but it still can't find intenvset. See below:
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.
Alright, thanks. I just did what you said and got the same error. I'll call installation support and get their help. Thanks.
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!

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!