Path: Math/Integration
% Fourth order Runge-Kutta integration. RHS is time-independent (TI). The right-hand-side function "rhs" computes the state derivative. "rhs" is a function handle with 2 inputs, evaluated as: rhs(x,a) -------------------------------------------------------------------------- Form: x = RK4TI( rhs, x, h, a ) -------------------------------------------------------------------------- ------ Inputs ------ rhs (:) Right-hand side function handle x (N,1) State (column vector) h (1) Independent variable step a (:) Input provided to rhs function ------- Outputs ------- x (N,1) Updated state --------------------------------------------------------------------------
Back to the Math Module page