필터 지우기
필터 지우기

Run multiple exe at same time

조회 수: 10 (최근 30일)
xiaohuo
xiaohuo 2022년 2월 21일
댓글: xiaohuo 2022년 3월 10일
Dear all,
I would like to know if MATLAB is able to run the multiple exe simultaneously. If yes, how to run it?

채택된 답변

Voss
Voss 2022년 2월 21일
Yes, you can use "&" to return control to MATLAB immediately after the exe starts. Then you can immediately run an exe again. For instance:
!excel.exe &
!excel.exe &
That would start two instances of Excel.
  댓글 수: 5
Walter Roberson
Walter Roberson 2022년 3월 2일
system(strjoin({cmd_H01, cmd_H02}, ';'))
xiaohuo
xiaohuo 2022년 3월 2일
system([cmd01,'&',cmd02]);
This works well!
Thanks!

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2022년 2월 21일
As .exe are specific to Windows, you could consider using .NET System.Diagonstics.Process to create the processes and control them.
  댓글 수: 3
xiaohuo
xiaohuo 2022년 3월 10일
Thanks.

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

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by