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 日

0 投票

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.

1 件のコメント

Charles Rino
Charles Rino 2016 年 11 月 5 日
Worked like a charm. Thank you Walter

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Application Deployment についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by