MATLAB回归分析求系数问题!y = a0+{a1+a2*(1-m)/m+a3*n/m^2}*(x1+x2)/2+{a4+a5*(1-m)/m+a6*n/m^2}*(x1-x2)/2怎么用MATLAB求回归系数?x1 = [281.1 283.0 284.8 286,7 288.7 290.7 292.7]x2 = [282.5 285.4 288.3 291.3 294.3 297.4 300.6]y = [280
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 01:17:16
MATLAB回归分析求系数问题!y = a0+{a1+a2*(1-m)/m+a3*n/m^2}*(x1+x2)/2+{a4+a5*(1-m)/m+a6*n/m^2}*(x1-x2)/2怎么用MATLAB求回归系数?x1 = [281.1 283.0 284.8 286,7 288.7 290.7 292.7]x2 = [282.5 285.4 288.3 291.3 294.3 297.4 300.6]y = [280
MATLAB回归分析求系数问题!
y = a0+{a1+a2*(1-m)/m+a3*n/m^2}*(x1+x2)/2+{a4+a5*(1-m)/m+a6*n/m^2}*(x1-x2)/2
怎么用MATLAB求回归系数?
x1 = [281.1 283.0 284.8 286,7 288.7 290.7 292.7]
x2 = [282.5 285.4 288.3 291.3 294.3 297.4 300.6]
y = [280 285 290 295 300 305]
m = 0.972 n = -0.013
求a0-a6的值!
MATLAB回归分析求系数问题!y = a0+{a1+a2*(1-m)/m+a3*n/m^2}*(x1+x2)/2+{a4+a5*(1-m)/m+a6*n/m^2}*(x1-x2)/2怎么用MATLAB求回归系数?x1 = [281.1 283.0 284.8 286,7 288.7 290.7 292.7]x2 = [282.5 285.4 288.3 291.3 294.3 297.4 300.6]y = [280
f=@(a,x)a(1)+(a(2)+a(3)*(1-m)/m+a(4)*n/m^2).*(x(1,:)+x(2,:))/2+(a(5)+a(6)*(1-m)/m+a(7)*n/m^2).*(x(1,:)-x(2,:))/2;
x = [281.1 283.0 284.8 286.7288.7 290.7 292.7; 282.5 285.4 288.3 291.3 294.3 297.4 300.6];
y = [280 285 290 295 300 305310];
m = 0.972;n = -0.013;
[a,e]=lsqcurvefit(f,ones(1,7),x,y);
disp(' a0 a1 a2 a3 a4 a5 a6 ');disp(a)
disp('cha_wu');disp(e)