How can I "watch" variables using the MATLAB Debugger?
이전 댓글 표시
I would like to set "watches" on variables while using the MATLAB Debugger. In particular, I would like to configure the debugger to break when the variable reaches a certain value or exceeds a certain range.
채택된 답변
추가 답변 (1개)
Marshall
2014년 4월 28일
3 개 추천
You can set conditional breakpoints to stop when a variable meets some condition that you specify: Where breakpoints are shown right click and select "set conditional breakpoint" or right click on an existing breakpoint and choose "set/modify condition". Then type an expression that will be evaluated to trigger the breakpoint, e.g. a>100.
카테고리
도움말 센터 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!