copyright year and indentation
parent
d56bba724c
commit
915502ce13
|
@ -9,7 +9,7 @@ function xlag = lagged(x, n)
|
||||||
% OUTPUT
|
% OUTPUT
|
||||||
% xlag = backward shifted series
|
% xlag = backward shifted series
|
||||||
|
|
||||||
% Copyright (C) 2017 Dynare Team
|
% Copyright (C) 2017-2021 Dynare Team
|
||||||
%
|
%
|
||||||
% This file is part of Dynare.
|
% This file is part of Dynare.
|
||||||
%
|
%
|
||||||
|
@ -32,7 +32,7 @@ end
|
||||||
|
|
||||||
x=x(:);
|
x=x(:);
|
||||||
if n>0
|
if n>0
|
||||||
xlag=[NaN(n,1); x(1:end-n)];
|
xlag=[NaN(n,1); x(1:end-n)];
|
||||||
else
|
else
|
||||||
xlag=[x(abs(n)+1:end); NaN(abs(n),1)];
|
xlag=[x(abs(n)+1:end); NaN(abs(n),1)];
|
||||||
end
|
end
|
Loading…
Reference in New Issue