How to disable error box when using system to run compiled application?

3 ビュー (過去 30 日間)
Rachel Soreq
Rachel Soreq 2016 年 11 月 6 日
回答済み: Jan 2016 年 11 月 6 日
I've generated a MATLAB application using R2016b, and I'm running it (the compiled version) using system() in order to test it in various scenarios, many of which result in error by design. Whenever such an error occurs, an error dialog box opens and I have to click 'ok' in order for it to close and the execution to terminate. This gets in the way of automating the testing procedure for multiple tests, as it requires me to wait and click ok in each execution. Is there a way to prevent system() from displaying that box when an error occurs? or at least not wait for it to close in order to continue?

採用された回答

Jan
Jan 2016 年 11 月 6 日
The error is not caused by system, but by your application. Therefore you should catch errors there, e.g. by the catch command. If an automatic error handling is wanted, you have to definie this manually e.g. as input argument and consider it in the code.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTesting Frameworks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by