Debug mode problem. How to solve it?

1 visualización (últimos 30 días)
tabw
tabw el 17 de Ag. de 2014
Comentada: per isakson el 17 de Ag. de 2014
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 comentario
per isakson
per isakson el 17 de Ag. de 2014
I don't get it. Could you make a small example in executable code?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by