Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
ac8303ed
Commit
ac8303ed
authored
Nov 05, 2013
by
MichelJuillard
Browse files
dynSeries: add possibility to merge with an empty series
adding comments
parent
27f525e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/merge.m
View file @
ac8303ed
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment