资源说明: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
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。