Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
835e1797
Commit
835e1797
authored
11 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Fix make_y_.m for purely forward/backward models.
This commit is linked to
052faa2f
and issue #613. (cherry picked from commit
86dd4a56
)
parent
f9d8e785
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/make_y_.m
+4
-4
4 additions, 4 deletions
matlab/make_y_.m
with
4 additions
and
4 deletions
matlab/make_y_.m
+
4
−
4
View file @
835e1797
...
...
@@ -12,7 +12,7 @@ function make_y_()
% none
%
% Copyright (C) 1996-201
2
Dynare Team
% Copyright (C) 1996-201
4
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -43,14 +43,14 @@ end
if
isempty
(
M_
.
endo_histval
)
if
isempty
(
ys0_
)
oo_
.
endo_simul
=
[
oo_
.
steady_state
*
ones
(
1
,
options_
.
periods
+
2
)];
oo_
.
endo_simul
=
[
oo_
.
steady_state
*
ones
(
1
,
M_
.
maximum_endo_lag
+
options_
.
periods
+
M_
.
maximum_endo_lead
)];
else
oo_
.
endo_simul
=
[
ys0_
oo_
.
steady_state
*
ones
(
1
,
options_
.
periods
+
1
)];
oo_
.
endo_simul
=
[
ys0_
*
ones
(
1
,
M_
.
maximum_endo_lag
)
oo_
.
steady_state
*
ones
(
1
,
options_
.
periods
+
M_
.
maximum_endo_lead
)];
end
else
if
~
isempty
(
ys0_
)
error
(
'histval and endval cannot be used simultaneously'
)
end
oo_
.
endo_simul
=
[
M_
.
endo_histval
...
oo_
.
steady_state
*
ones
(
1
,
options_
.
periods
+
1
)];
oo_
.
steady_state
*
ones
(
1
,
options_
.
periods
+
M_
.
maximum_endo_lead
)];
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment