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

조회 수: 1 (최근 30일)
Michael Hartmann
Michael Hartmann 2018년 7월 16일
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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by