File Exchange

image thumbnail

Runge-Kutta 4: Logic enabled

version 1.0 (779 KB) by

4th order Runge-Kutta implementation that allows user to process complex calculations each timestep



View License

This RK4 implementation allows the user to program any complicated math and logic into the timesteps by using a function-call to get the system of equations to be solved. For example, you can simulate a valve that opens at t=5 using an "if" statement in your system of equations that switches the valve equation from the closed to the open state at t=5.
A video tutorial of the code is available at

Comments and Ratings (0)



Clarify title

MATLAB Release
MATLAB 8.3 (R2014a)

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video