作业帮 > 综合 > 作业

用matlab进行主成分编程,主成分得分系数矩阵的函数是什么?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 07:18:37
用matlab进行主成分编程,主成分得分系数矩阵的函数是什么?
的确没有spear函数,我们是用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