Suppress Command Window Output using SYSTEM command
67 ビュー (過去 30 日間)
古いコメントを表示
Thales Follador de Oliveira
2016 年 10 月 17 日
回答済み: Jan Siegmund
2021 年 11 月 15 日
Hi, on my code i'm doing a conversation between Matlab and a software called XFOIL. First the program creates a file (.dat) with all inputs that need to apply onXFOIL, than execute it with the follow command:
system('xfoil.exe < myfile.dat');
I want to suppress command window outputs. Can anybody help me?
Thank You!
0 件のコメント
採用された回答
その他の回答 (1 件)
Jan Siegmund
2021 年 11 月 15 日
The accepted answer unfortunately is OS specific. A MATLAB only solution would be:
[returncode, outputMessages] = system('xfoil.exe < myfile.dat');
or if you do not want to process the messages and need only the return code
[returncode, ~] = system('xfoil.exe < myfile.dat');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Communications Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!