每当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.
<stopping criteria details>
有可能阻止这个吗?
答案 0 :(得分:6)
尝试设置选项:
opts = optimset('Diagnostics','off', 'Display','off');
[x,fval] = fsolve(@myfun, x0, opts);