Skip to content
Snippets Groups Projects
Commit 63354b13 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Remove extra argument (in solve_algo=0 under Octave)

(cherry picked from commit afe800f3)
parent eb2ed4eb
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment