how to compute correlation coeffcient?

조회 수: 2 (최근 30일)
Aidy
Aidy 2013년 12월 11일
댓글: Aidy 2013년 12월 11일
hi,
I have 2 vectors A and B
A=[0.0252653330054456 0.0252653330054481 0.0252653330347238 0.0252656701005406]
B=[1.83588753363655 1.83588753363655 1.83588753363753 1.83588754495825]
I want to get a similarity value between 0 and 1, using a correlation coefficient. Is their any function in Matlab to get it?
cheers

답변 (1개)

the cyclist
the cyclist 2013년 12월 11일
Typing
docsearch correlation
turns up the corrcoef() function as the first hit.
doc corrcoef
for details on this function, to see if it does what you need.
  댓글 수: 1
Aidy
Aidy 2013년 12월 11일
no, the pearson corr eoeff gives between -1 and 1, not 0 and 1. And of course, I looked at the doc.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by