Fixed bug.

time-shift
Stéphane Adjemian (Charybdis) 2013-06-24 11:29:26 +02:00
parent fa4ad71185
commit 51c4eb6cb3
1 changed files with 1 additions and 1 deletions

View File

@ -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).