I'm developing code to fit the Gompertz equation to a bacterial growth curve and am practicing with some example data provided at the following website:
http://www.math.tamu.edu/~phoward/m442/ia3sol.pdf.
According to this code the fit should almost match the data (graph given at above webpage, page 3). However when I run the code the actual data plots correctly but the lsqcurve fit fits very poorly and gives the following message:
Local minimum possible.
lsqcurvefit stopped because the size of the current step is less than
the default value of the step size tolerance.
Is there anything I am doing wrong?
Thank you for your time,
Laura