怎样用matlab求相关系数矩?
怎样用matlab求相关系数矩阵
我们是用corr来计算的: [RHO,PVAL] = corr(X,Y,'name',value) 其中name可以是type,rows,tail,而value分别如下: type: 'Pearson' (the default) computes Pearson's linear correlation coefficient 'Kendall' computes Kendall's tau 'Spearman' computes Spearman's rho rows 'all' (the default) uses all rows regardless of missing values (NaNs) 'complete' uses only rows with no missing values 'pairwise'computes RHO(i,j) using rows with no missing values in column i or j tail 'both' — Correlation is not zero (the default) 'right' — Correlation is greater than zero 'left' — Correlation is less than zero。
答:的意思是找不到指定的文件,你确定你的文件路径正确吗? 另外,调用的部分你用 n(shcmd)试试详情>>