Commit af62f3e3 authored by MichelJuillard's avatar MichelJuillard
Browse files

dynSeries: update 'time' field in align()

parent 40a4678a
......@@ -80,16 +80,14 @@ if last_a>last_b
n = last_a-last_b;
b.data = [b.data; NaN(n,b.vobs)];
b.nobs = b.nobs+n;
return
end
if last_a<last_b
elseif last_a<last_b
n = last_b-last_a;
a.data = [a.data; NaN(n,a.vobs)];
a.nobs = a.nobs+n;
return
end
a.time = a.init:a.init+(a.nobs-1);
%@test:1
%$ % Define a datasets.
%$ A = rand(8,3); B = rand(7,2);
......
Markdown is supported
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