Hi, while trying to solve equations with unknowns using fsolve, I encounter this problem: Conditioning of Gradient Poor - Switching To LM method Maximum number of iterations exceeded Increase OPTIONS.iterations How to increase options.iterations in the following program?? for instance: x0=[.5 .5 .5 .5 .5]; % initial guess of m, A, T, ws, wu options = optimset('Largescale', 'off', 'maxfunevals', 100000000); %switch off large-scale algorithm val = fsolve('fun3',x0,options); % calls the function 'fun3', i.e the necessary and sufficient conditions (5 equations) Thanks!