Problems with the ode solvers

I have been trying to write programs for solving simple, linear second-order ode's using ode45. I have managed to write working programs for first-order ode's, but my attempts at programs for second-order ode's have error messages I cannot understand.
Are there examples, complete code, for solving linear, second-order ode's? If so, where can I find them. (The code for the example given in the text, the van der Pol's equation, is split into different parts and is confusing when I try to use it.)

1 Comment

It would be helpful, if you post your code and the error messages. Then a suggestion for improvements would be much easier.

Answers (1)

This question is closed.

Products

Asked:

on 10 Mar 2013

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!