Clear Filters
Clear Filters

Solve sixth-order ODE in matlab

1 view (last 30 days)
Luan Trinh
Luan Trinh on 2 Dec 2014
Answered: Torsten on 2 Dec 2014
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!

Accepted Answer

Torsten
Torsten on 2 Dec 2014
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.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!