4th order RK4

RK4 method for a system of ODEs

You are now following this Submission

The classical RK4 method for a system of ODEs, which can include any number of ODEs in the system by altering the g.m file and the X(2,nt) preallocation. Will solve for non-linear systems as well. Includes 2 line animations and stability plot for a non-linear pendulum.

Cite As

Lucas Gasparino (2026). 4th order RK4 (https://www.mathworks.com/matlabcentral/fileexchange/60401-4th-order-rk4), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0