Date: Oct 30, 2013 6:18 AM Author: Sonia Subject: Reduce the number of fminsearch iterations Is it possible to make the fminsearch algorithm stop as soon as it evaluates the objective function at a given x as zero?

I am optimizing for one variable and what happens is that the fminsearch finds a point where the objective function f(x) = 0, but it continues to iterate until the simplex is contracted around that value of x that gives 0. I would like it to stop as soon as the fun(x)=0