From afe800f32d2a3116295b70a46fd9838c5091c109 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Mon, 19 Sep 2011 12:36:37 +0200
Subject: [PATCH] Remove extra argument (in solve_algo=0 under Octave)

---
 matlab/dynare_solve.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/dynare_solve.m b/matlab/dynare_solve.m
index 9e27df3ee..45463f283 100644
--- a/matlab/dynare_solve.m
+++ b/matlab/dynare_solve.m
@@ -57,8 +57,8 @@ if options_.solve_algo == 0
         % Under Octave, use a wrapper, since fsolve() does not have a 4th arg
         func2 = str2func(func);
         func = @(x) func2(x, varargin{:});
-        % The Octave version of fsolve do not converge when it starts from the solution
-        [fvec,fjac] = feval(func,x,varargin{:});
+        % The Octave version of fsolve does not converge when it starts from the solution
+        fvec = feval(func,x);
         if max(abs(fvec)) >= options_.solve_tolf
             [x,fval,exitval,output] = fsolve(func,x,options);
         else
-- 
GitLab