"Undefined function 'stockspec' for input arguments of type 'double' " Error

1 次查看(过去 30 天)
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 个评论
Image Analyst
Image Analyst 2016-1-9
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
Walter Roberson 2016-1-10
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by