Stata Nonlinear Least Squares Matlab