Всякий раз, когда 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>
Можно ли это остановить?
попробуйте установить параметры:
opts = optimset('Diagnostics','off', 'Display','off'); [x,fval] = fsolve(@myfun, x0, opts);