"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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by