matlab 结果如下,方程表达式怎么写?syms x1 x2 y;x1=[1.5 2.0 1.5 2.5 3.3 2.3 4.2 2.5]';x2=[5.0 2.0 4.0 2.5 3.0 3.5 2.5 3.0]';y=[96 90 95 92 95 95 94 94]';X=[ones(8,1) x1 x2 (x1.^2) (x2.^2)];[b,bint,r,rint,stats]=regress(y,X);b,statsb =76.301
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 01:55:54
matlab 结果如下,方程表达式怎么写?syms x1 x2 y;x1=[1.5 2.0 1.5 2.5 3.3 2.3 4.2 2.5]';x2=[5.0 2.0 4.0 2.5 3.0 3.5 2.5 3.0]';y=[96 90 95 92 95 95 94 94]';X=[ones(8,1) x1 x2 (x1.^2) (x2.^2)];[b,bint,r,rint,stats]=regress(y,X);b,statsb =76.301
matlab 结果如下,方程表达式怎么写?
syms x1 x2 y;
x1=[1.5 2.0 1.5 2.5 3.3 2.3 4.2 2.5]';
x2=[5.0 2.0 4.0 2.5 3.0 3.5 2.5 3.0]';
y=[96 90 95 92 95 95 94 94]';
X=[ones(8,1) x1 x2 (x1.^2) (x2.^2)];
[b,bint,r,rint,stats]=regress(y,X);
b,stats
b =
76.3019
1.5280
6.6454
-0.0779
-0.6252
stats =
0.9930 107.0540 0.0014 0.0623
stats=
下面是显示的数据是什么?
matlab 结果如下,方程表达式怎么写?syms x1 x2 y;x1=[1.5 2.0 1.5 2.5 3.3 2.3 4.2 2.5]';x2=[5.0 2.0 4.0 2.5 3.0 3.5 2.5 3.0]';y=[96 90 95 92 95 95 94 94]';X=[ones(8,1) x1 x2 (x1.^2) (x2.^2)];[b,bint,r,rint,stats]=regress(y,X);b,statsb =76.301
y=76.3019 + 1.5280*x1 + 6.6454*x2 -0.0779*x1^2-0.6252*x2^2