曲线拟和函数lsqcurvefit和nlinfit