automatic execution of external program
3 ビュー (過去 30 日間)
古いコメントを表示
Hi to everybody! I need to execute an external program (like a.exe) via matlab. Specifically, I need to change the folder in a cmd.exe window, execute the program a.exe and do the following input (these are do via successfully iteration and not via command line when the program is launched): - a number (return command); - the input file path (return command); - the input file (return command). I need to do this automatically because I need to execute the program hundred or thousand times with different inputs. Furthermore, I need to transfer the information produced in the cmd window in matlab command window because, in the case of some errors occurs, the program prints this in the cmd window.
If I don't do this, how I can do it via an external file, like .bat file?
thanks to everybody
0 件のコメント
回答 (2 件)
Image Analyst
2015 年 3 月 29 日
See attached demo (which launches Photoshop) that you can modify as needed.
4 件のコメント
Image Analyst
2015 年 3 月 31 日
Why can't your program just read in the text file(s) that are created? That should work.
Geoff Hayes
2015 年 3 月 29 日
4 件のコメント
Geoff Hayes
2015 年 3 月 31 日
Simone - please given an example of how the program asks me a number and wait for the return command. How will you know that the program is asking (and so waiting) for a response>
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!