Info
此问题已关闭。 请重新打开它进行编辑或回答。
How do I put a condition on stopping of breakpoint ?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2013-2-6
dbstop in YourFunction if t > 99 & t < 101
(because we don't know if it will try to sample at 100 exactly )
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!