Is it possible to have matlab go into debugging mode only when it hits a nan?

7 Ansichten (letzte 30 Tage)
Is it possible to have matlab go into debugging mode only when it hits a nan, without writing code, just run and then halt when nan is detected using matlab IDE?

Antworten (2)

Rik
Rik am 1 Mai 2018
dbstop IF NANINF

Guillaume
Guillaume am 1 Mai 2018
Bearbeitet: Guillaume am 1 Mai 2018
Have you looked at the documentation? It's right there in the documentation of dbstop
dbstop if naninf

Kategorien

Mehr zu Debugging and Analysis finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by