Error in compiled exe file using deploytool ("An error occurred while trying to determine whether normcdf is a function name")
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 1 月 9 日
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
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!