Error in compiled exe file using deploytool ("An error occurred while trying to determine whether normcdf is a function name")
Ältere Kommentare anzeigen
I have compiled a standalone executable using deploytool.m in the Matlab Compiler Version 4.16 with Matlab R2011b. I get the following error whenever I run the compiled program (but not when I run the function from within Matlab):
"An error occurred while trying to determine whether "normcdf" is a function name"
Any ideas on why this might be occurring?
This link <http://www.mathworks.com.au/support/solutions/en/data/1-A4CIW9/index.html?product=CO&solution=1-A4CIW9> suggests that the error may be a licensing issue. If that is the case, can anyone explain that further? I have a license for the statistics toolbox (i.e., which contains normcdf). Is there a way around this error?
Thanks,
Dan
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 9 Jan. 2012
In the routine that calls normcdf, try adding
%#function normcdf
I always have a hard time finding this in the documentation. It is at http://www.mathworks.com/help/toolbox/compiler/function.html
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!