change of time in ode45

1 view (last 30 days)
Wei Qi Lim
Wei Qi Lim on 14 Jun 2021
Commented: Wei Qi Lim on 14 Jun 2021
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.

Answers (1)

Steven Lord
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.
  1 Comment
Wei Qi Lim
Wei Qi Lim on 14 Jun 2021
Above is part of my eq. Does that mean that my eq need to solve by DDEs not ODE45?

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!