RK4/AB4, need help with correct code for 2 second order equations in Matlab
Show older comments
I have examples of code to follow for one second order equation but struggling to write correct code for 2 second order equations. grateful for any help!
4 Comments
James Tursa
on 4 Apr 2020
One 2nd order equation will result in a 2-element state vector. Two 2nd order equations will result in a 4-element state vector. Just write your derivative function for a 4-element state vector. What have you tried so far?
Anne Ellaway
on 4 Apr 2020
James Tursa
on 4 Apr 2020
Let us know if you need more help. We can't give much advice until we see the differential equations and the code you have written.
Anne Ellaway
on 4 Apr 2020
Edited: darova
on 6 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!