Filter löschen
Filter löschen

Matlab exec file popup error window when it crashes

4 Ansichten (letzte 30 Tage)
yuri tupizin
yuri tupizin am 18 Apr. 2015
Beantwortet: Prateekshya am 23 Jul. 2024 um 8:46
I have created an exe file from my project and I want to forbid it from opening error popup windows when it crashes , anyone ideas ?
Thanks

Antworten (1)

Prateekshya
Prateekshya am 23 Jul. 2024 um 8:46
Hello Yuri,
There are a few ways to handle the errors occuring during the execution of your project. Please try the below steps:
  • Wrap your main code in a try-catch block to handle errors and prevent MATLAB from displaying error popups.
  • Customize error handling preferences using "setpref" to suppress error dialogs. Please follow this link to know more about "setpref": https://www.mathworks.com/help/matlab/ref/setpref.html
  • Instead of displaying errors, log them to a file for later analysis.
You can refer to this link for more information on error handling: https://www.mathworks.com/help/matlab/error-handling.html
I hope this helps!
Thank you.

Kategorien

Mehr zu Loops and Conditional Statements 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!

Translated by