• 2021-04-14
    非线性拟合代码x = lsqcurvefit('fun',x0,xdata,ydata) 中xdata和ydata是满足关系ydata=fun(x, xdata)的已知数据点,x为参数向量,x0为迭代初值