From fd09b981508017fe320494227a569d08fabe2130 Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel@debian.home> Date: Tue, 31 Mar 2020 15:40:49 +0200 Subject: [PATCH] fix bug when no convergence and backward model --- matlab/perfect-foresight-models/perfect_foresight_solver.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver.m b/matlab/perfect-foresight-models/perfect_foresight_solver.m index c86ccfe95f..e675b7fecd 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_solver.m +++ b/matlab/perfect-foresight-models/perfect_foresight_solver.m @@ -185,6 +185,7 @@ end if ~isreal(oo_.endo_simul(:)) % cannot happen with bytecode or the perfect_foresight_problem DLL + ny = size(oo_.endo_simul, 1) if M_.maximum_lag > 0 y0 = real(oo_.endo_simul(:, M_.maximum_lag)); else -- GitLab