U是X(差异矩阵)各列向量取方向后形成的矩阵,C=U^T * U 即相关矩阵,即各列向量两两的夹角,(夹角越小说明关联度越高)
clc avg_e=66;avg_m=66;avg_s=76; x1=[61 63 78 65 63]' -avg_e; x2=[53 73 61 84 59]' -avg_m; x3=[53 78 82 96 71]'-avg_s; X=[x1/norm(x1), x2/norm(x2), x3/norm(x3)] Correlation_Matrix=X' *X
U是X(差异矩阵)各列向量取方向后形成的矩阵,C=U^T * U 即相关矩阵,即各列向量两两的夹角,(夹角越小说明关联度越高)
clc avg_e=66;avg_m=66;avg_s=76; x1=[61 63 78 65 63]' -avg_e; x2=[53 73 61 84 59]' -avg_m; x3=[53 78 82 96 71]'-avg_s; X=[x1/norm(x1), x2/norm(x2), x3/norm(x3)] Correlation_Matrix=X' *X