MATLAB: Solve sixth-order ODE in matlab

boundary conditionssixth-order ode

Hi every one,
I want to solve a sixth-order ODE like y(6) + 2y(4) + y(2) = f(x) with 6 boundary conditions. Could anybody can help me?
Thank you in advance!

Best Answer

Use - depending on your boundary conditions - ODE45 or BVP4c and set up the system as
y1'=y2
y2'=y3
y3'=y4
y4'=y5
y5'=y6
y6'=-2*y5-y3-f(x)
Best wishes
Torsten.