From 5ab724d38f5abf95f3ae61680b536276d0056e13 Mon Sep 17 00:00:00 2001
From: MichelJuillard <michel.juillard@mjui.fr>
Date: Mon, 17 May 2021 17:37:41 +0200
Subject: [PATCH] Following a change in the calling sequence. Fixes #1789

---
 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 2fee70d824..c703683454 100644
--- a/matlab/ep/extended_path_core.m
+++ b/matlab/ep/extended_path_core.m
@@ -26,7 +26,7 @@ ep = options.ep;
 if init% Compute first order solution (Perturbation)...
     endo_simul = simult_(M,options,initial_conditions,oo.dr,exo_simul(2:end,:),1);
 else
-    if nargin==20 && ~isempty(initialguess)
+    if nargin==19 && ~isempty(initialguess)
         % Note that the first column of initialguess should be equal to initial_conditions.
         endo_simul = initialguess;
     else
-- 
GitLab