How do I keep the DOS command window open after running my MATLAB Compiler generated stand-alone application?

조회 수: 6 (최근 30일)
I have created a stand-alone application using the MATLAB Compiler. When I run it by double-clicking on the executable, a DOS command window opens up, displays something, and closes. I would like this window to stay open.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2011년 11월 23일
The ability to keep the DOS window open after running the MATLAB Compiler generated stand-alone application by double clicking it, is not available with MATLAB Compiler 4.6 (R2007a).
The DOS window closing when an application terminates is an operating system functionality.
As a workaround to this issue, you would first need to open a DOS window and execute your application from within it, as follows
1. Go to "Start->Run"
2. Type "cmd" and press "OK"
3. In the DOS command window, navigate to the directory containing your application and type the name of the executable.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by