EXE file generated by Matlab compiler cannot work
이전 댓글 표시
I tried to use Matlab compiler to compile my .m files(including several GUI related files). Everything seemed to go smoothly. I got Matlab Runtime installed and the .exe file finally but when I clicked the icon, it had no response.
Then I started again and wrote a very simple .m file and did all the same thing. It worked!
I know some of the functions are not supported by Matlab compiler. Is this responsible for my problem? If yes, how can I know which functions fail?
My system is MAC OS. Thanks for any suggestions related to my problem.
답변 (1개)
Kojiro Saito
2017년 3월 23일
편집: Kojiro Saito
2017년 3월 23일
0 개 추천
You had better make the compiled application create a log file. In compile options, try checking the checkbox of a log option. This option is located in the bottom.
댓글 수: 2
Tianju Xue
2017년 4월 5일
Jan
2017년 4월 5일
Of course the code for productive work should not call guide. But you can include a GUI created by GUIDE in a compiled application.
The trailing end is required, if any function in the M-file uses it. This must happen for nested function in every case. But as far as I know this concerns Matlab also, not just the compiled code.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!