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
f4b25efc
Commit
f4b25efc
authored
Nov 29, 2017
by
Marco Ratto
Committed by
Stéphane Adjemian
Jan 10, 2018
Browse files
bug fix with initial_date for conditional shock decomposition
parent
a63bc5b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/plot_shock_decomposition.m
View file @
f4b25efc
...
...
@@ -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