Runge-Kutta 4: Logic enabled

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

Al momento, stai seguendo questo contributo

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

Cita come

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

Categorie

Scopri di più su Chemistry in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0

Clarify title