Event function and ODE.
Show older comments
I was solving an one dimensional ODE using ODE45.
I have two events in event function, where the execution of second event is dependent on the time instant of the first event.
How could I do that? Please help!
Elaborately...
1) Second event will comes into existence only after the execution of first event and is dependent on the time instant of first event.
for example..
Let first event instant be t=te. Then second instant will be at t=te+1.
3 Comments
Steven Lord
on 20 Nov 2024
Can you provide the ODE you're trying to solve, describe what it represents (a ball bouncing on the ground, a baton twirling in the air, a ballistics problem, etc.), and explain what the events represent in the physical system?
Arnab
on 21 Nov 2024
Steven Lord
on 21 Nov 2024
Can you show the mathematical form of the ODE you're trying to solve, not the code? Show it and describe what it's computing in text, please.
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
