文件名称:各种回归求解方法
文件大小:782B
文件格式:M
更新时间:2014-10-01 11:44:39
回归 matlab
matlab 求解各种回归 clc s1=0; mu=0; format long g x=[3.6,0.13,31,13.2,0.035,12.3,31,69]; for i=1:8 mu=mu+x(i); end for i=1:319 for j=1:8 s1=s1+(A(i,j)-x(j))^2*x(j); end y(i)=sqrt(s1)/mu; s1=0; end Y=y; X=[X(:,1),X(:,2),X(:,3),X(:,4)]; [b,bint,r,rint,stats]=regress(Y,X); b,bint,stats