Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment