From 51c4eb6cb3013d2edae0342f260f9eaac69533ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Mon, 24 Jun 2013 11:29:26 +0200 Subject: [PATCH] Fixed bug. --- matlab/@dynSeries/subsref.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/@dynSeries/subsref.m b/matlab/@dynSeries/subsref.m index a2de5cd6c..2f691926b 100644 --- a/matlab/@dynSeries/subsref.m +++ b/matlab/@dynSeries/subsref.m @@ -122,7 +122,7 @@ switch S(1).type B.nobs = length(tdx); B.vobs = A.vobs; B.freq = A.freq; - B.init = A.init+tdx(1); + B.init = A.init+(tdx(1)-1); B.time = A.time(tdx,:); elseif isvector(S(1).subs{1}) && all(isint(S(1).subs{1})) % Extract a subsample using a vector of integers (observation index).