Can "Pause on Errors" be enabled by a script, or set as the default?
49 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jim Riggs
am 15 Okt. 2024
Kommentiert: Walter Roberson
am 4 Nov. 2024
I run many processes that take a day or more to run, and sometimes they encounter unexpected errors. I don't always think to turn on "Pause on Errors", but when an error ocurrs, I wish that I had. Is there a way to set this in my script, or configue MATLAB such that this is the default behavior?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 15 Okt. 2024
dbstop if error
It is sometimes useful to use
dbstop if caught error
However, it turns out that caught errors are expected in routines such as ode45() and integrate() so it can get a bit frustrating to deal with all the caught errors sometimes.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Desktop 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!