查看单个帖子
旧 2019-12-10, 20:48   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
帖子 在fsolve完成时停止消息

只要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);

更多&回答...
poster 当前离线   回复时引用此帖