Using the MATLAB compiler

조회 수: 9 (최근 30일)
Abel Babu
Abel Babu 2011년 12월 11일
I tried creating an executable file for the image processing m-file that i wrote. The .exe file was generated but it shows no output ie When executing it , it just shows a blank screen and then it flashes something and it closes itself.. suggestions and help will be most appreciated !
  댓글 수: 2
Jan
Jan 2011년 12월 11일
Obviously there is a bug. We cannot guess the cause.
Abel Babu
Abel Babu 2011년 12월 11일
Thanks for the reply Mr Simons, Well this the first time i'm trying out the MATLAB compiler and the code works well when trying out its m-file, and didn't show any error during compiling either..! By the way is there a way of generating the run time error for the exe file if then debugging would be a lot easier.

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2011년 12월 11일
More importantly for your purposes, see http://www.mathworks.com/support/solutions/en/data/1-7KKC5J/?solution=1-7KKC5J . I know this will at first look like I have completely misdirected you as it talks about serial objects, but you are encountering the same underlying problem (your main function is exiting taking everything with it) and has the same basic solution (waitfor or uiwait)

Kaustubha Govind
Kaustubha Govind 2011년 12월 12일
Perhaps you could try running your executable from a system command window (as opposed to simply double-clicking on it), to see if any error message is displayed. Also, as Walter suggested, building as a "Console Application" instead of "Windows Standalone" with display a command window that shows the program log (including errors).

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by