"Undefined function 'stockspec' for input arguments of type 'double' " Error
1 view (last 30 days)
Show older comments
I am getting the following error when using stockspec function: Undefined function 'stockspec' for input arguments of type 'double'
The code is:
AssetPrice = 50;
Sigma = 0.20;
StockSpec = stockspec(Sigma, AssetPrice);
or
StockSpec = stockspec(.20, 50)
I have Financial Instruments Toolbox, code
any(strcmp('Financial Toolbox', {v.Name}))
returns ans=1
Even
help stockspec
returns full documentation text output.
Therefore I am courious whether I am lacking any essential toolbox, or what else may be the cause of this problem.
The list of toolboxes I have:
MATLAB Version 8.6 (R2015b)
Curve Fitting Toolbox Version 3.5.2 (R2015b)
Database Toolbox Version 6.0 (R2015b)
Datafeed Toolbox Version 5.2 (R2015b)
Econometrics Toolbox Version 3.3 (R2015b)
Financial Instruments Toolbox Version 2.2 (R2015b)
Financial Toolbox Version 5.6 (R2015b)
Global Optimization Toolbox Version 3.3.2 (R2015b)
Neural Network Toolbox Version 8.4 (R2015b)
Optimization Toolbox Version 7.3 (R2015b)
Parallel Computing Toolbox Version 6.7 (R2015b)
Spreadsheet Link EX Version 3.2.4 (R2015b)
Statistics and Machine Learning Toolbox Version 10.1 (R2015b)
Symbolic Math Toolbox Version 6.3 (R2015b)
Thanks in advance
3 Comments
Image Analyst
on 9 Jan 2016
What happens if you run the full demo, with all the optional arguments put in there, like in the documentation: http://www.mathworks.com/help/fininst/stockspec.html?s_tid=srchtitle If that runs, I'd call tech support.
Walter Roberson
on 10 Jan 2016
A possibility is that you have the toolbox installed but not licensed. If that is the case then the "which -all stockspec" would mention not being licensed if I recall correctly.
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!