只要fsolve完成,它就会输出
Equation solved. fsolve completed because the vector of function values is near zero as measured by the default value of the function tolerance, and the problem appears regular as measured by the gradient. 有可能停止吗?
回答:
尝试设置选项:
opts = optimset('Diagnostics','off', 'Display','off'); [x,fval] = fsolve(@myfun, x0, opts);
更多&回答...