Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 其它 > 资料存档
资料存档 资料存档
 
 
主题工具 显示模式
旧 2019-12-14, 20:13   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
帖子 相关矩阵MATLAB

您是否知道一个matlab脚本,该脚本获取一组数据的相关矩阵,例如column = 7的numbe,而row = n >> 7

x1 x2 x3 x4 x5 x6 x7 0.780 2.042 2.754 2.894 5.000 5.000 5.000 0.767 0.816 2.758 2.898 5.000 1.644 1.626 0.816 0.836 1.558 2.124 2.952 5.000 5.000 0.848 0.871 1.588 2.147 2.966 5.000 5.000 1.378 1.620 1.433 2.567 3.268 3.203 5.000 ....

回答:

尝试corrcoef

通常,您可以通过搜索在线帮助来立即找到这些东西,例如通过便捷的lookfor命令:

>> lookfor correlation corrcoef - Correlation coefficients. msfuncorr - an MS-function which performs auto- and cross- ... >> help corrcoef CORRCOEF Correlation coefficients. R=CORRCOEF(X) calculates a matrix R of correlation coefficients for an array X, in which each row is an observation and each column is a variable. 例如

load file.txt result= CORRCOEF(file);

更多&回答...
poster 当前离线   回复时引用此帖
 


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛禁用 表情符号
论坛启用 [IMG] 代码
论坛启用 HTML 代码



所有时间均为北京时间。现在的时间是 02:55


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.