How to disable error box when using system to run compiled application?
3 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Testing Frameworks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!