From a8a9ec1957f19ca31b91929044e28650e78b7571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Wed, 16 Oct 2013 16:17:43 +0200 Subject: [PATCH] Fixed bug in the definition of init when extracting a subsample with a vector of integers. --- 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 99cc5b92c..db89177d6 100644 --- a/matlab/@dynSeries/subsref.m +++ b/matlab/@dynSeries/subsref.m @@ -209,7 +209,7 @@ switch S(1).type B.vobs = A.vobs; B.freq = A.freq; B.time = builtin('subsref', A.time, S(1)); - B.init = A.init+S(1).subs{1}(1); + B.init = B.time(1); B.name = A.name; B.tex = A.tex; else