Fixed typo.

The value of jacobian_flag was not passed to fsolve.
time-shift
Stéphane Adjemian (Charybdis) 2015-07-07 11:11:28 +02:00
parent 8007f508a2
commit 27922a349c
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ if options.solve_algo == 0
options4fsolve.TolFun = tolf;
options4fsolve.Display = 'iter';
if jacobian_flag
Options4fsolve.Jacobian = 'on';
options4fsolve.Jacobian = 'on';
else
Options4fsolve.Jacobian = 'off';
options4fsolve.Jacobian = 'off';
end
if ~isoctave
[x,fval,exitval,output] = fsolve(func,x,options4fsolve,varargin{:});