Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How do I put a condition on stopping of breakpoint ?

1 回表示 (過去 30 日間)
Tonu
Tonu 2013 年 2 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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

回答 (1 件)

Walter Roberson
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 )

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by