MATLAB Answers

MrToad
1

can I return more than one argument in the "odefun" when called from ode45

Asked by MrToad
on 17 Sep 2019 at 17:48
Latest activity Answered by Steven Lord
on 17 Sep 2019 at 17:59
I am attempting to integrate a differential equation for a system manifesting state changes, such that the prior state must be passed to "odefun" in each call executed by ode45. Is it possible to allow odefun to return more than one variable (after the estimated numerical derivative) to facilitate this? Or is there another alternative?
Thanks.

  0 Comments

Sign in to comment.

Tags

Products


Release

R2017b

1 Answer

Answer by Steven Lord
on 17 Sep 2019 at 17:59

What you've described sounds not like an ordinary differential equation (ODE) but like a delay differential equation (DDE). This documentation page describes the functions available for solving DDEs.

  0 Comments

Sign in to comment.