Error: Undefined function or method '.....' for input arguments of type 'double'
古いコメントを表示
Hi,
In Matlab I have created a planning optimization code. It calls some functions, both .m files and mex files among others a license file. All these files are in my directory, although not necessqarily in the same folder. In matlab it works great but if I use Builder EX in order to compile a standalone add-in for Excel and I try to use this addd-in in Excel I get the error:
Error in SAM.SAMclass.1_0: Undefined function or method 'PLANNINGSAM' for input arguments of type 'double'.
I do not know how to deal with this error because 'PLANNINGSAM' is in the project which I compiled and the input are two matrices which only contains nuumbers. Can anybody please help me? Thanks!
回答 (2 件)
Walter Roberson
2011 年 8 月 12 日
Is there a direct call to PLANNINGSAM, or is it eval()'d or feval()'d or is it listed as a Callback in a string literal (e.g.,
... 'Callback', 'PLANNINGSAM(x,y)', ...
Or is it only invoked through a function that is only called in one of the above ways?
If MATLAB cannot find a direct call in a procedure that is directly called (rather than being named in a string) then the compiler will not know to include the code for the routine. In such a case, the work-around is to put the comment
%#function PLANNINGSAM
in some routine that you are sure is directly called.
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!