多项式拟合 polyfit #拟合函数 polyval #对应的插值函数 指定函数拟合 fm = @(p,x) p(1) * x^2.2 + p(2); beta = nlinfit(x,y,fm,[1,1]);