system of two non linear second order equations

1 次查看(过去 30 天)
Hi im having a problem for solving this set of equation and
i'm not that familiar with the ODE45 function in Matlab.
i would be glad if someone can help me with the following set of equations.
Thanks ,
Chen
  4 个评论
chen
chen 2015-1-4
编辑:chen 2015-1-4
i have implemented the following for solving this system:
function xprime = Mirage(t,x);
k=2;
xprime=[x(1); k*(1-x(1).^2)./(1+k*x(2)); x(3) ; -(k*x(1)*x(3))./(1+k*x(2))];
end
x0=[1 1 1 1];
tspan=[0,20];
[t,x]=ode45(@Mirage,tspan,x0)
the program seems in infinite loop (Matlab stays"Busy"). where did i wrong?
Torsten
Torsten 2015-1-5
I get
xprime=[x(2); k*(1-x(2)^2)/(1+k*x(1)); x(4) ; -(k*x(2)*x(4))/(1+k*x(1))];
for your system where x(1)=y, x(2)=y', x(3)=z, x(4)=z'.
Best wishes
Torsten.

请先登录,再进行评论。

回答(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