Remove extra argument (in solve_algo=0 under Octave)

time-shift
Sébastien Villemot 2011-09-19 12:36:37 +02:00 committed by Stéphane Adjemian (Scylla)
parent c07a915d6e
commit 0155b6832e
1 changed files with 2 additions and 2 deletions

View File

@ -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