Cross Correlation
이전 댓글 표시
What does the function xcorr(x,y) actually do? Is it just a multiplication of Xm+n and Yn ? If so, why does the result matrix have 2N-1 elements while X & Y have N elements? How do I conclude if there is correlation among X & Y from the result? Thanks
채택된 답변
추가 답변 (1개)
Wayne King
2011년 10월 16일
0 개 추천
velocity with a shifted velocity will definitely work with xcorr. Since acceleration is the derivative of velocity, if you have acceleration with a delay, you'll have to get the derivative of the velocity vector first to use xcorr().
댓글 수: 2
Nithin
2011년 10월 16일
Wayne King
2011년 10월 16일
If they are the same length, then you can use the 'coeff' option and you will have a cross correlation that ranges from [-1, 1]. You can look at the lag at which the largest correlation coefficient occurs and what it's value is.
카테고리
도움말 센터 및 File Exchange에서 Correlation and Convolution에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!