Commit 839c01dd authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug in @dynSeries/align method (occuring if the second dynSeries object...

Fixed bug in @dynSeries/align method (occuring if the second dynSeries object has more observations than the first one).
parent 47a5a20a
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment