Suppress Command Window Output using SYSTEM command

조회 수: 103 (최근 30일)
Thales Follador de Oliveira
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!

채택된 답변

Walter Roberson
Walter Roberson 2016년 10월 17일

추가 답변 (1개)

Jan Siegmund
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');

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by