How do I run a windows command line executable under Matlab?
2 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!