Is there a way to not block the MATLAB command line when calling a DOS console program using the DOS or SYSTEM command?
조회 수: 33 (최근 30일)
이전 댓글 표시
The MATLAB command line blocks execution when I call a DOS console application or command.
The following piece of code illustrates this behavior:
dos('my_DOS_program');
When my_DOS_program is running, I am unable to execute any commands on the MATLAB command line.
채택된 답변
MathWorks Support Team
2009년 6월 27일
To prevent the DOS command from blocking MATLAB execution, run the DOS program in its own console window.
The following piece of code illustrates this:
dos('my_DOS_program &');
The '&' at the end of the string specifies that this DOS command must run in its own console window and not in MATLAB.
Using this allows MATLAB to execute while the DOS program runs.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!