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
Mark Song
dynare
Commits
165fee84
Commit
165fee84
authored
Nov 29, 2017
by
Marco Ratto
Committed by
Stéphane Adjemian
Jan 12, 2018
Browse files
bug fix with initial_date for conditional shock decomposition
(cherry picked from commit
f4b25efc
)
parent
9629d28f
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/plot_shock_decomposition.m
View file @
165fee84
...
...
@@ -134,7 +134,7 @@ steady_state = oo_.steady_state;
if
isequal
(
type
,
'aoa'
)
&&
isstruct
(
q2a
)
&&
realtime_
% take all dates where realtime is saved
qqq
=
initial_date
+
options_
.
shock_decomp
.
save_realtime
(:)
-
1
;
qqq
=
options_
.
initial_date
+
options_
.
shock_decomp
.
save_realtime
(:)
-
1
;
% take the first Q4 of saved realtime
t0
=
min
(
options_
.
shock_decomp
.
save_realtime
(
qqq
.
time
(:,
2
)
==
4
));
if
isempty
(
t0
)
...
...
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