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.9930107.0540
0.0014
0.0623
|