Den 30.05.2011 13:19, skrev Matthieu Brucher: > > It seems to me that least squares cannot lead to a ribust fit in the > usual sense. Leastsq is actually Levenberg-Marquardt (lmder and lmdif from MINPACK). It can be used to minimize any cost function if you provide the Jacobian. Sturla