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

6 次查看(过去 30 天)
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?

回答(2 个)

Rik
Rik 2018-5-1
dbstop IF NANINF

Guillaume
Guillaume 2018-5-1
编辑:Guillaume 2018-5-1
Have you looked at the documentation? It's right there in the documentation of dbstop
dbstop if naninf

类别

Help CenterFile Exchange 中查找有关 Debugging and Analysis 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by