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
af62f3e3
Commit
af62f3e3
authored
Oct 09, 2013
by
MichelJuillard
Browse files
dynSeries: update 'time' field in align()
parent
40a4678a
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/@dynSeries/align.m
View file @
af62f3e3
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
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