Propagates the state vector forward one time step using the Adams-Bashforth 2nd-order method.
F = AB2(f,t,F,h)
F = AB2(f,t,y,h) updates the matrix, F, for the next sample time, given the matrix at the current time t, the function f(t,y) defining the ODE , and the step size h.
|Input||f||multivariate, vector-valued function () defining the ordinary differential equation
- inputs to f are the current time (t, 1×1 double) and the current state vector (y, p×1 double)
- output of f is the state vector derivative (dydt, p×1 double) at the current time/state
|t||current sample time||1×1
|F||matrix (see Section 3.5.2 of the technical documentation) for the current sample time||p×3
|Output||F||matrix (see Section 3.5.2 of the technical documentation) for the next sample time||p×3