Р% plot(x2,y2)Р% hold onР% plot (x2,y ,'.k')Р% title ('x2和y的散点图')Р% xlabel('x2')Р% ylabel('y')Р// 计算参数估计值,参数置信区间,进行逐步回归Р% clc;Р% clear;Р% Р% y=[98.45 100.70 102.80 133.95 140.13 143.11 146.15 144.60 148.94 158.55 169.68 162.14 170.09 178.69]';Р% x2=[560.20 603.11 668.05 715.47 724.27 736.13 748.91 760.32 774.92 785.30 795.50 804.80 814.94 828.73]';Р% x3=[153.20 190.00 240.30 301.12 361.00 420.00 491.76 501.00 529.20 552.72 771.16 811.80 988.43 1094.65]';Р% x4=[6.53 9.12 8.10 10.10 10.93 11.85 12.28 13.50 15.29 18.10 19.61 17.22 18.60 23.53]';Р% x5=[1.23 1.30 1.80 2.09 2.39 3.90 5.13 5.41 6.09 7.97 10.18 11.79 11.54 11.68]';Р% x6=[1.89 2.03 2.71 3.00 3.29 5.24 6.83 8.36 10.07 12.57 15.12 18.25 20.59 23.37]';Р% z=ones(14,1);Р% x=[z x2 x4 ]Р% [b,bint,r,rint,stats]=regress(y,x)Р% stepwise(x,y)