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 periods
time-shift
Johannes Pfeifer 2016-10-30 10:41:14 +01:00
parent 0a2f3f0f10
commit 9bdc0286d6
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ else
repmat(oo.exo_det_steady_state',...
horizon- ...
exo_det_length,1)];
elseif horizon < exo_det_length
elseif horizon <= exo_det_length
ex = zeros(exo_det_length,M.exo_nbr);
end
if isequal(M.H,0)