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