I am using fitnlm to do a simple curve fit. Most of the time it runs perfectly, but every now and then nearly identical data will cause it to crash, and I am not sure why. Here is an example that runs perfectly:
Here is an example where it doesn't work. Both example codes are attached, along with the function "weibull.m" which defines the fit.
Thank you very much for your help with this. It really has be baffled.