Hide a .bat file run from Command Window

조회 수: 9 (최근 30일)
Christian W. Pedersen
Christian W. Pedersen 2012년 3월 7일
Hi!
I'm running a program in batch mode using Matlab.
When I'm executing this bat file (!Run.bat) Matlab displays the entire simulation from the program (takes about 18 seconds).
When I execute the file with dos('Run.bat &') it runs in about 2 seconds, but Matlab skips the run completely.
So, my question is: Is there some way to run my .bat file without making Matlab show the entire simulation in the Command Window but not 'skip' the simulation?

채택된 답변

Christian W. Pedersen
Christian W. Pedersen 2012년 3월 7일
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 3월 7일
Heh. I do repeat myself, don't I?

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 3월 7일
!Run.bat > NUL:
If you were using Unix (Linux, OS-X), the equivalent would be
!Run.bat > /dev/null

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by