Info

This question is closed. Reopen it to edit or answer.

Help with Basic Definition of Systems in MATLAB

1 view (last 30 days)
Nolan Kelligrew
Nolan Kelligrew on 20 Nov 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
I am trying to use ode45 to solve a second order differential equation mu''+cu'+ku=Asin(2pift) where prime is a derivateive with respect to time, and I know that I can convert it into a system of first order equations, but I don't understand how such a system is supposed to be represented in MATLAB syntax and passed into ode45 as a single function handle input. I would appreciate some help on what the code looks like for a second order differential equation converted into a system of first order differential equations.

Answers (1)

Steven Lord
Steven Lord on 20 Nov 2015
Take a look at the van der Pol examples in the Examples section of this documentation page.

Community Treasure Hunt

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

Start Hunting!