MATLAB: Coupled Second order differential eq. solution

differential equationsode45

i have 2 coupled eq. i used ode45. my system looks like:
x''=x'/a(f/c - by'/y)
y'=1-x'y/d
my system:
dx1=x2
dx2=(x2/a).*(f/c - b*dx3/x3)
dx3=1-x3.*x2/D
thanks! i suppose i cant really use dx3 on RHS…

Best Answer

%Suppose
x1=x
x2=x'
x3=y
%we get the system
dx1=x2
dx2=x2/a*(f/c - b*(1-x2*x3/d)/x3) % You have to check your brackets
dx3=1-x2*x3/d