(一)数据处理1. 按照最小二乘法原理编写matlab程序;x=-200-10001002003004005006007008009001000110012001300y=0n=16;sx=sum(x);sy=sum(y);sxx=sum(x*x);sxy=sum(x*y);k=(n*sxy-sx*sy)/(n*sxx-sx*sx);a0=(sxx*sy-sx*sxy)/(n*sxx-sx*sx);sprintf(y=%d+(%d)*x,a0,k)x=-200:100:1300;y=a0+k*x;plot(x,y)%绘出曲线运行结果:ans=y=+*x2. 采用matlab自带的拟合函数进行线性你和,对前面的结果进行验证;x=-200-10001002003004005006007008009001000110012001300y=0p=polyfit(x,y,1);vpa(poly2sym(p),4)x0=-200:100:1300;y0=polyval(p,x0);subpl