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

1 回表示 (過去 30 日間)
Branislav Lovás
Branislav Lovás 2016 年 1 月 9 日
コメント済み: Walter Roberson 2016 年 1 月 10 日
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 Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by