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
Dynare
dynare
Commits
c4684885
Commit
c4684885
authored
Aug 31, 2017
by
Stéphane Adjemian
Browse files
Fixed dimension of exo_simul (always add one row).
parent
0efff7c1
Changes
2
Show whitespace changes
Inline
Side-by-side
matlab/backward/simul_backward_linear_model.m
View file @
c4684885
...
...
@@ -57,11 +57,7 @@ else
end
Y
=
DynareOutput
.
endo_simul
;
if
~
DynareModel
.
max_exo_lag_orig
if
DynareModel
.
max_endo_lag_orig
>
1
DynareOutput
.
exo_simul
=
[
zeros
(
DynareModel
.
max_endo_lag_orig
-
1
,
DynareModel
.
exo_nbr
);
DynareOutput
.
exo_simul
];
end
end
DynareOutput
.
exo_simul
=
[
zeros
(
1
,
DynareModel
.
exo_nbr
);
DynareOutput
.
exo_simul
];
% Get coefficients
[
cst
,
jacob
]
=
model_dynamic
(
zeros
(
DynareModel
.
endo_nbr
+
ny1
,
1
),
...
...
...
matlab/backward/simul_backward_nonlinear_model.m
View file @
c4684885
...
...
@@ -60,11 +60,7 @@ else
end
Y
=
DynareOutput
.
endo_simul
;
if
~
DynareModel
.
max_exo_lag_orig
if
DynareModel
.
max_endo_lag_orig
>
1
DynareOutput
.
exo_simul
=
[
zeros
(
DynareModel
.
max_endo_lag_orig
-
1
,
DynareModel
.
exo_nbr
);
DynareOutput
.
exo_simul
];
end
end
DynareOutput
.
exo_simul
=
[
zeros
(
1
,
DynareModel
.
exo_nbr
);
DynareOutput
.
exo_simul
];
% Simulations (call a Newton-like algorithm for each period).
for
it
=
1
+
(
1
:
samplesize
)
...
...
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