Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How do I put a condition on stopping of breakpoint ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Am using ode15s my t_span is from [0 2000], say I want to stop the simulation after 100 seconds ? This is just for an illustration , actually I want to put conditions on other variables in my codes.
Any help would be appreciated . Thanks, Tonu
0 comentarios
Respuestas (1)
Walter Roberson
el 6 de Feb. de 2013
dbstop in YourFunction if t > 99 & t < 101
(because we don't know if it will try to sample at 100 exactly )
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!