Matlab fits the parameters of the objective function