Suppress Command Window Output using SYSTEM command
79 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Thales Follador de Oliveira
am 17 Okt. 2016
Beantwortet: Jan Siegmund
am 15 Nov. 2021
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Jan Siegmund
am 15 Nov. 2021
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 Kommentare
Siehe auch
Kategorien
Mehr zu Communications Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!