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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (2)

Rik
Rik il 1 Mag 2018
dbstop IF NANINF

Guillaume
Guillaume il 1 Mag 2018
Modificato: Guillaume il 1 Mag 2018
Have you looked at the documentation? It's right there in the documentation of dbstop
dbstop if naninf

Categorie

Scopri di più su Debugging and Analysis in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by