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
4395259b
Commit
4395259b
authored
Jun 05, 2012
by
Sébastien Villemot
Browse files
Fix MATLAB compatibility issue
parent
05dca0e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/sim1_purely_backward.m
View file @
4395259b
...
...
@@ -34,6 +34,7 @@ function sim1_purely_backward
yb
=
oo_
.
endo_simul
(:,
it
-
1
);
% Values at previous period, also used as guess value for current period
yb1
=
yb
(
iyb
);
oo_
.
endo_simul
(:,
it
)
=
solve1
(
model_dynamic
,
[
yb1
;
yb
],
1
:
M_
.
endo_nbr
,
nyb
+
1
:
nyb
+
M_
.
endo_nbr
,
1
,
1
,
oo_
.
exo_simul
,
M_
.
params
,
oo_
.
steady_state
,
it
)(
nyb
+
1
:
nyb
+
M_
.
endo_nbr
);
tmp
=
solve1
(
model_dynamic
,
[
yb1
;
yb
],
1
:
M_
.
endo_nbr
,
nyb
+
1
:
nyb
+
M_
.
endo_nbr
,
1
,
1
,
oo_
.
exo_simul
,
M_
.
params
,
oo_
.
steady_state
,
it
);
oo_
.
endo_simul
(:,
it
)
=
tmp
(
nyb
+
1
:
nyb
+
M_
.
endo_nbr
);
end
\ No newline at end of file
matlab/sim1_purely_forward.m
View file @
4395259b
...
...
@@ -33,6 +33,7 @@ function sim1_purely_forward
yf
=
oo_
.
endo_simul
(:,
it
+
1
);
% Values at next period, also used as guess value for current period
yf1
=
yf
(
iyf
);
oo_
.
endo_simul
(:,
it
)
=
solve1
(
model_dynamic
,
[
yf
;
yf1
],
1
:
M_
.
endo_nbr
,
1
:
M_
.
endo_nbr
,
1
,
1
,
oo_
.
exo_simul
,
M_
.
params
,
oo_
.
steady_state
,
it
)(
1
:
M_
.
endo_nbr
);
tmp
=
solve1
(
model_dynamic
,
[
yf
;
yf1
],
1
:
M_
.
endo_nbr
,
1
:
M_
.
endo_nbr
,
1
,
1
,
oo_
.
exo_simul
,
M_
.
params
,
oo_
.
steady_state
,
it
);
oo_
.
endo_simul
(:,
it
)
=
tmp
(
1
:
M_
.
endo_nbr
);
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