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

1 vue (au cours des 30 derniers jours)
Brando Miranda
Brando Miranda le 1 Mai 2018
Modifié(e) : Guillaume le 1 Mai 2018
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?

Réponses (2)

Rik
Rik le 1 Mai 2018
dbstop IF NANINF

Guillaume
Guillaume le 1 Mai 2018
Modifié(e) : Guillaume le 1 Mai 2018
Have you looked at the documentation? It's right there in the documentation of dbstop
dbstop if naninf

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by