필터 지우기
필터 지우기

Debug mode problem. How to solve it?

조회 수: 1 (최근 30일)
tabw
tabw 2014년 8월 17일
댓글: per isakson 2014년 8월 17일
I used Debug mode to test my code. it is okay If I set break points and press F10 many many times.
let 's say,
variable q
variable t inside a loop
when q=1 ,t will increase incrementally until q changes and it will start again
when I use debug mode and press F10, t can will increase incrementally without any problem.
q can reach 5 and the program is okay.
But If I don't use debug mode, Just press F5.
Q stuck in 3, and t increases inside a loop forever and never end the loop
I guess a problem in my code? but why debug mode can run my code
  댓글 수: 1
per isakson
per isakson 2014년 8월 17일
I don't get it. Could you make a small example in executable code?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by