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

1 visualización (últimos 30 días)
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?

Respuestas (2)

Rik
Rik el 1 de Mayo de 2018
dbstop IF NANINF

Guillaume
Guillaume el 1 de Mayo de 2018
Editada: Guillaume el 1 de Mayo de 2018
Have you looked at the documentation? It's right there in the documentation of dbstop
dbstop if naninf

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by