필터 지우기
필터 지우기

How do I run a windows command line executable under Matlab?

조회 수: 2 (최근 30일)
Charles Rino
Charles Rino 2016년 11월 5일
댓글: Charles Rino 2016년 11월 5일
I have an executable of the form main.exe p1 p2 p3 p4 p5 p6 that will run in a command window. It generates two files. It would be very convenient to set up runs and collect the output under Matlab.

채택된 답변

Walter Roberson
Walter Roberson 2016년 11월 5일
result = system('main.exe p1 p2 p3 p4 p5 p6');
You might also see dos() used. On Windows system, dos() and system() are the same. system() is better defined as to what it does on non-Windows systems.

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by