supress command line output from exe

4 ビュー (過去 30 日間)
Amardeep
Amardeep 2011 年 11 月 22 日
回答済み: Alexander Tsarev 2017 年 4 月 13 日
Hi all;
I have created an exe of a simulink model and am launching it from a .m using:
!mymdl.exe
My question is how do I suppress the command line blurb output by it i.e the
** Starting the model **
** Created output.mat **
As there is multiple (thousand) calls to the exe this rapidly gets very annoying.
Regards
Amardeep

採用された回答

Walter Roberson
Walter Roberson 2011 年 11 月 22 日
You could try
!mymdl.exe > NUL:

その他の回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2011 年 11 月 22 日
If you are using the ERT target, you can edit the generated ert_main.c and comment out the printf calls that are generating that output. You can then recompile the code by running the batch file (if on Windows) or use gmake to run the generated makefile.

Alexander Tsarev
Alexander Tsarev 2017 年 4 月 13 日
system('mymdl.exe > NUL')
should also work

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by