I am using lsqcurvefit inside large nested for loops. The following messages are printed in the command window thousands or sometimes millions of times.
Local minimum found. Optimization completed because the size of the gradient is less thanthe default value of the function tolerance.
stopping criteria details>
The question is how can I suppress these messages?