Fix bug in dyn_forecast.m that led to crashes when periods-option was not specified
Condition for setting ex did not account for equality of horizon and periodstime-shift
parent
0a2f3f0f10
commit
9bdc0286d6
|
@ -140,7 +140,7 @@ else
|
||||||
repmat(oo.exo_det_steady_state',...
|
repmat(oo.exo_det_steady_state',...
|
||||||
horizon- ...
|
horizon- ...
|
||||||
exo_det_length,1)];
|
exo_det_length,1)];
|
||||||
elseif horizon < exo_det_length
|
elseif horizon <= exo_det_length
|
||||||
ex = zeros(exo_det_length,M.exo_nbr);
|
ex = zeros(exo_det_length,M.exo_nbr);
|
||||||
end
|
end
|
||||||
if isequal(M.H,0)
|
if isequal(M.H,0)
|
||||||
|
|
Loading…
Reference in New Issue