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
Johannes Pfeifer
dynare
Commits
915502ce
Commit
915502ce
authored
Feb 13, 2021
by
Marco Ratto
Browse files
copyright year and indentation
parent
d56bba72
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/dataset/lagged.m
View file @
915502ce
...
...
@@ -9,7 +9,7 @@ function xlag = lagged(x, n)
% OUTPUT
% xlag = backward shifted series
% Copyright (C) 2017 Dynare Team
% Copyright (C) 2017
-2021
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -32,7 +32,7 @@ end
x
=
x
(:);
if
n
>
0
xlag
=
[
NaN
(
n
,
1
);
x
(
1
:
end
-
n
)];
xlag
=
[
NaN
(
n
,
1
);
x
(
1
:
end
-
n
)];
else
xlag
=
[
x
(
abs
(
n
)
+
1
:
end
);
NaN
(
abs
(
n
),
1
)];
xlag
=
[
x
(
abs
(
n
)
+
1
:
end
);
NaN
(
abs
(
n
),
1
)];
end
\ No newline at end of file
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