matlable 回归分析 急求程序

2024-12-29 14:23:26
推荐回答(1个)
回答1:

x1=[1,1,1,1,1,1,1,1,1,1,1,1;
0.0003276,0.0004059,0.0004857,0.0005974,0.0009253,0.0018505,0.0000922,0.0001289,0.0001657,0.0002063,0.0001903,0.0002497;
0.000122,0.0001486,0.0001768,0.0002339,0.0004232,0.0008464,0.0000509,0.0000757,0.0000866,0.0000906,0.0000916,0.0001301];
y1=[0.000001626,0.000002014,0.000004575,0.000005857,0.000006330,0.00001726,0.000001643,0.000001715,0.000002938,0.000002422,0.00000188,0.00000308];
X=x1';Y=y1';
b=regress(Y,X)

运行结果:

b =

0.0000
-0.0004
0.0200

即a=-0.0004,b=0.0200

baidu上没有多少人帮你做这个的,要懂自己动手上网查,以后自己做才可以