Hi all. Can anybody point me a direction how to make a robust fit of nonlinear function using leastsq. Maybe someone have seen ready function doing this. Thanks. Petro.