Runge Kutta methods

Version 1.0.0 (2.38 KB) by Robby Ching
A set of Runge Kutta methods for numerically evaluating an initial value problem of a 1st order ODE
487 Downloads
Updated 3 Jul 2020

View License

It is an iterative approach in finding the y value for a given x value starting from a 1st order ODE. It asks the user the ODE function and the initial values and increment value. It also lets the user choose what termination criterion to use, either a specified x value or a number of iterations. A 1st order RK method is the simple Euler's method; for a 2nd order RK equation, there are 3 choices available: Heun's method, Midpoint's method, and Ralston's method; for a 3rd order RK method, the classical 3rd order is used; for a 4th order RK method, the classical 4th order is used (RK4); for a 5th order, Butcher's 5th order is used.

Cite As

Robby Ching (2024). Runge Kutta methods (https://www.mathworks.com/matlabcentral/fileexchange/77678-runge-kutta-methods), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0