全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
2019 0
2008-04-14

>> y=xlsread('D:\u.xls');
   x1=xlsread('D:\T.xls');
   x2=xlsread('D:\P.xls');
   x3=xlsread('D:\S.xls');
   X=[ones(length(y),1) x1 x2 x3 x1.*x2 x1.*x3 x2.*x3 x1.^2 x2.^2 x3.^2];
   [b,bcl,e,ecl,stat]=regress(y,X,0.05);
   lenb=length(b);
   disp('Regression coefficients and their confidence limits')
   disp(num2str(bcl(:,1)))
   disp(['Coefficient of determination R^2='num2str(stat(1))])
   disp(['Test statistic F0='num2str(stat(2))'and corresponding p-value='num2str(stat(3))])
   normplot(e)
Regression coefficients and their confidence limits
  -0.416054
 -0.0375866
 -0.0574109
   -5.25212
 0.00364536
  -0.425171
  -0.422587
0.000283891
 -0.0191824
    24.2936
???    disp(['Coefficient of determination R^2='num2str(stat(1))])
                                                |
Error: Missing MATLAB operator.

小弟在此谢过先

[此贴子已经被作者于2008-4-14 19:44:50编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群