File Exchange

image thumbnail

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

14 Downloads

Updated 03 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 (2020). Runge Kutta methods (https://www.mathworks.com/matlabcentral/fileexchange/77678-runge-kutta-methods), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Sergio Hernández

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!