Solve simultaneously 2 ODE & one Non linear algebraic equation. And all are dependent to each other. Is it possible to solve them in a single Function file in MATLAB ?
2 次查看(过去 30 天)
显示 更早的评论
Example : dy/dt=z*x-2*y^2; dx/dt=x*z^2-sinh(y); z=x^2*y*asinh(z);
I need to solve it simultaneously and need plots between y vs. t & x vs.t & z vs.t
1 个评论
Daniel Jovin
2018-2-23
Pujari, did you ever manage to solve this system? I am trying to solve a similar system myself.
回答(1 个)
Torsten
2016-10-25
编辑:Walter Roberson
2016-10-26
Take a look at the section "Solve Robertson Problem As Semi-Explicit Differential Algebraic Equations (DAEs)" under
Best wishes
Torsten.
5 个评论
Torsten
2016-11-3
Suitable solvers in MATLAB for DAE-systems are ode15s or ode15i. Usually, it is very important that your initial conditions for the solution variables are consistent, i.e. that the algebraic equations are satisfied when the initial values are inserted.
This is the only advice I can give because I don't know your specific DAE-system.
Best wishes
Torsten.
另请参阅
类别
在 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!