完成fsolve后停止消息

时间:2010-09-13 05:09:09

标签: matlab

每当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>

有可能阻止这个吗?

1 个答案:

答案 0 :(得分:6)

尝试设置选项:

opts = optimset('Diagnostics','off', 'Display','off');
[x,fval] = fsolve(@myfun, x0, opts);