From b9b50dbc0004cc2a80bd3ad5b89f562cdfe6a855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?= <stepan@adjemian.eu> Date: Thu, 13 Mar 2025 14:30:13 +0100 Subject: [PATCH] Fix wrong test on the number of input arguments. --- matlab/ep/extended_path_core.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/ep/extended_path_core.m b/matlab/ep/extended_path_core.m index 71571b112c..237d99b801 100644 --- a/matlab/ep/extended_path_core.m +++ b/matlab/ep/extended_path_core.m @@ -41,7 +41,7 @@ stack_solve_algo = ep.stack_solve_algo; if init% Compute first order solution (Perturbation)... endo_simul = simult_(M_,options_,initial_conditions,oo_.dr,exo_simul(2:end,:),1); else - if nargin==19 && ~isempty(initialguess) + if nargin==8 && ~isempty(initialguess) % Note that the first column of initialguess should be equal to initial_conditions. endo_simul = initialguess; else -- GitLab