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

조회 수: 3 (최근 30일)
MrToad
MrToad 2019년 9월 17일
답변: Steven Lord 2019년 9월 17일
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.

답변 (1개)

Steven Lord
Steven Lord 2019년 9월 17일
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.

카테고리

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

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by