Mass and right hand side of ODE computed by the same nested function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!