Error: Undefined function or method '.....' for input arguments of type 'double'
Show older comments
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!
Answers (2)
Walter Roberson
on 12 Aug 2011
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.
Joep
on 13 Aug 2011
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!