Time-dependent parameter in ode solver

Hi,
How can I implement a time-dependent parameter which is to be incorporated in the ode solver? The parameter is part of an equation which in turn is a part of a differential equation.

Answers (1)

See the "ODE with Time-Dependent Terms" example on the documentation page for ode45 for one technique.

Products

Release

R2018b

Asked:

on 26 Feb 2019

Answered:

on 26 Feb 2019

Community Treasure Hunt

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

Start Hunting!