how to solve implicit second differential equation in matlab

Answers (1)

Use ODE45 or BVP4C (depending on your boundary conditions) to solve the system
y1' = y2
y2' = (-Af(x)*y2-h(x))/(Bg(x))
Best wishes
Torsten.

2 Comments

i am getting dis error : function returns a vector of length 1, but the length of initial conditions vector is 2. The vector returned by MST and the initial conditions vector must have the same number of elements.
What's the code you are using ?
Best wishes
Torsten.

Sign in to comment.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Asked:

on 3 Mar 2015

Commented:

on 3 Mar 2015

Community Treasure Hunt

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

Start Hunting!