rung kutta order4

3 views (last 30 days)
Abdelwahed
Abdelwahed on 1 Jan 2012
I'm not very good in matlab programmation.so..I want to resolve the equation y"+ay'+by+c=d with (a,b,c,d) const with rung kutta order 4...but not only with ode45 i want the details...I want all the program (if it's possible) ..thanks
  1 Comment
Jan
Jan on 1 Jan 2012
"Tags" does not mean a list of the top posters you want to answer, but some meaningful keywords such that the question can be sorted into a category. Therefore I've clean up the tags.

Sign in to comment.

Accepted Answer

Jan
Jan on 1 Jan 2012
If you type
edit ode45
you see the full source code of the Runge-Kutta oder 4 using a 5th order for the stepsize estimation. There you have all the program.
But if you want to implement it by your own, this can be done in one or two hours even by a beginner. Simply start to convert the algorithm from a text book or from WikiPedia to Matlab. If you end with a specific problem, asking in the forum is a good idea.
Btw., you are not the first one who tries to implement a Runge-Kutta, therefore you can search in the FileExchange or ask Google for other examples.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!