Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
我有2个数字,分别为1或-1。 Matlab上有哪些标准工具可以帮助我计算两个向量之间的相关数?提前致谢!
回答: 您需要的是CORRCOEF函数: R = corrcoef(vector1(:),vector2(:)); %# Returns a 2-by-2 matrix of %# correlation coefficients 如果您具有统计工具箱 ,则可能还需要检出CORR函数: RHO = corr(vector1(:),vector2(:)); %# Returns the linear correlation coefficient %# (default is a Pearson correlation) 更多&回答... |
![]() |
![]() |