Question

Can I use this form when i need to solve system of ODE by ode45 on MATLAB

dy(3)=dy(1)*dy(2)+y(3)*y(2) 

I mean is my expression correct?

For example how can I solve this:

dy(3)=dy(1)*dy(2)+y(1)
dy(2)=dy(1)-y(2)
dy(1)=dy(2)+dy(3)/y(1) 

initial conditions are :

y(1)=1
y(2)=0
y(3)=0
Was it helpful?

Solution

MATLAB solves ordinary differential equations of the form dy/dt = f(t,y), your differential equation is fully implicit, of the form f(t,y,dy/dt) = 0. You can only solve it using ode15i. For more information, refer to the documentation on Ordinary Differential Equations and ode15i.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top