Is it possible to have matlab go into debugging mode only when it hits a nan?
Show older comments
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?
Answers (2)
Rik
on 1 May 2018
dbstop IF NANINF
dbstop if naninf
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!