Mercurial > hg > octave-nkf
diff scripts/ode/private/ode_rk_interpolate.m @ 20773:ea6a1c00763a
fix interpolation bug introduced with 87b557ee8e5d
* ode_rk_interpolate.m(hermite_quartic_interpolation):
fix typo that lead to incorrect size for interpolated values.
author | Carlo de Falco <carlo.defalco@polimi.it> |
---|---|
date | Tue, 06 Oct 2015 22:14:41 +0200 |
parents | 87b557ee8e5d |
children |
line wrap: on
line diff
--- a/scripts/ode/private/ode_rk_interpolate.m +++ b/scripts/ode/private/ode_rk_interpolate.m @@ -87,7 +87,7 @@ u_half = x(:,1) + (1/2) * dt * (der(:,1:7) * coefs_u_half); ## Rescale time on [0,1] - s = (t_out - t) / dt; + s = (t_out - t(1)) / dt; ## Hermite basis functions ## H0 = 1 - 11*s.^2 + 18*s.^3 - 8*s.^4;