This is a MATLAB-implementation of ROCK4 (Abdulle & Medovikov)for the numerical solution of a (mildly) stiff system of first order differential equations ODEs y'=f(t,y).
ROCK4 is based on a family of second order explicit Runge-Kutta methods with nearly optimal stability domain on the negative real axis.
Usage is the same as ode23s:
[TOUT,YOUT] = rock(ODEFUN,TSPAN,Y0)
[TOUT,YOUT] = rock4(DEFUN,TSPAN,Y0,OPTIONS)
[TOUT,YOUT,TE,YE,IE] = rock4(ODEFUN,TSPAN,Y0,OPTIONS)
Gerd Steinebach (2023). ROCK4 (https://www.mathworks.com/matlabcentral/fileexchange/12129-rock4), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!