数学建模与MATLAB|matlab灰色预测关联度

【数学建模与MATLAB|matlab灰色预测关联度】matlab灰色预测关联度

function y=guanlian() % x = [41462, 28969, 32251, 47694, 32265, 27819, 33539, 36994]; %x=xlsread('Statetotal.xlsx') x=xlsread('StateTotalyuce.xlsx') n1=size(x,1); for i=1:n1 x(i,:)=x(i,:)/x(i,1); %????? end data=https://www.it610.com/article/x n=size(data,2); %??????????????? ck=data(1,:); %?????? bj=data(1:end,:); %?????? m2=size(bj,1); %???????? for j=1:m2 t(j,:)=bj(j,:)-ck ; end mn=min(min(abs(t'))); %???? mx=max(max(abs(t'))); %???? rho=0.5; %?????? ksi=(mn+rho*mx)./(abs(t)+rho*mx); %????? r=(sum(ksi'))/n %???? [rs,rind]=sort(r,'descend') %????????

    推荐阅读