필터 지우기
필터 지우기

Events with ODE45 to change output values

조회 수: 2 (최근 30일)
David Demory
David Demory 2020년 4월 7일
댓글: darova 2020년 4월 7일
Hi
I am integrating an ode system describing number of individual dynamics. Unfortunatly I have values asymptotically close to 0 and <1 that is not realistic and it should be 0.
Do you know how to use the events function when the variables reach 1, then considere this variable = 0 but NOT stop the ode integration?
The idea would be to do the same than:
ballode
but with only one integration bu not with loops and integrating many times when you have reached the threashold ...
Many thanks,
D.
  댓글 수: 3
David Demory
David Demory 2020년 4월 7일
Thanks darova for your answer. However, ballode was just an exemple. In my case I want to replace by 0 a variable when it < 1 in the ode45 integration and not stoping the integration.
darova
darova 2020년 4월 7일
I think it's impossible. I can't help :(

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by