changeset 20598: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 bc6daa38ff50
children f61c67865d9f
files scripts/ode/private/ode_rk_interpolate.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ode/private/ode_rk_interpolate.m	Tue Oct 06 14:47:41 2015 -0400
+++ b/scripts/ode/private/ode_rk_interpolate.m	Tue Oct 06 22:14:41 2015 +0200
@@ -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;