change of time in ode45
1 view (last 30 days)
Show older comments
May I ask how to code the change of time shown in picture in ode45 because normally was coded as t only in ode45 but this time the equations have different in time and I was unable to find any example online.
Thank you for the help.
0 Comments
Answers (1)
Steven Lord
on 14 Jun 2021
If the right hand side of your system of differential equations involves the solution at a previous time you don't have a system of ordinary differential equations you have a system of delay differential equations. See this documentation page for a discussion of the tools available for solving DDEs.
See Also
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!