> > Set TolFun to a smaller value. > > > > Best wishes > > Torsten. > > Dear Torsten, > that worked, but the fit is still pretty bad. > I have a curve running from 10^0 down to 10^(-4) on > the y axis. > The first 10 data points are fitted well for low > x-values, but badly for higher x-values. > I wanted to fit the log of my function, but received > after ca. 4h calculations times just four misfitted > point from 299 data points. > I received during fitting: > > Warning: Maximum function count exceeded; singularity > likely. > > What do I do with it? > Is there a chance to introduce with lsqcurvefit some > error boundaries for the data or some weighing, > please?
Can you supply the data points and the fitting function ?