Commit ac8303ed authored by MichelJuillard's avatar MichelJuillard
Browse files

dynSeries: add possibility to merge with an empty series

adding comments
parent 27f525e1
......@@ -51,7 +51,11 @@ tex = [B.tex; C.tex];
A.tex = tex(IBC);
A.vobs=length(IBC);
if B.init >= C.init
if B.nobs == 0
A = C;
elseif C.nobs == 0
A = B;
elseif B.init >= C.init
diff = B.init - C.init;
A.nobs = max(B.nobs + diff, C.nobs);
A.data = NaN(A.nobs, A.vobs);
......
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