Error in compiled exe file using deploytool ("An error occurred while trying to determine whether normcdf is a function name")
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 9 de En. de 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
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!