Mass and right hand side of ODE computed by the same nested function

1 visualización (últimos 30 días)
I want to solve a system of coupled ordinary differential equations of the form
M(y) y'(t) = f(y)
without inverting the matrix M. Since both, M and f, are computed from the same elements, it seems most efficient to do this in a common function,
function [M, f] = myfun(...)
How can I pass this on to ode45?
Thanks, Michael

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by