Runge-Kutta 4: Logic enabled

4th order Runge-Kutta implementation that allows user to process complex calculations each timestep
276 Downloads
Updated Wed, 16 May 2018 18:12:47 +0000

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 http://youtu.be/ps7ixASlSgc

Cite As

Ethan Kung (2024). Runge-Kutta 4: Logic enabled (https://www.mathworks.com/matlabcentral/fileexchange/67361-runge-kutta-4-logic-enabled), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Chemistry in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Matlab_4th_order_Runge_Kutta/

Version Published Release Notes
1.0.0.0

Clarify title