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

조회 수: 7 (최근 30일)
Brando Miranda
Brando Miranda 2018년 5월 1일
편집: Guillaume 2018년 5월 1일
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