Fixed bug in @dynSeries/align method (occuring if the second dynSeries object has more observations than the first one).

time-shift
Stéphane Adjemian (Charybdis) 2013-06-17 17:13:12 +02:00
parent 47a5a20a64
commit 839c01dd27
1 changed files with 3 additions and 2 deletions

View File

@ -84,9 +84,10 @@ if last_a>last_b
end
if last_a<last_b
n = last_a-last_b;
a.data = [a.data; NaN(n,b.vobs)];
n = last_b-last_a;
a.data = [a.data; NaN(n,a.vobs)];
a.nobs = a.nobs+n;
return
end
%@test:1