xcorr vs conv: in latest MATLAB version
이전 댓글 표시
Hello, I get xcorr(x,y)=conv(x,fliplr(y)) when using the latest MATLAB edition. Has the defintion of xcorr(x,y) changed to xcorr(l)=summation(x(n),y(n-l)) in the latest version? I understand that in the older version, it used to be xcorr(l)=summation(x(n),y(n+l)) Kindly clarify. Thanks very much
댓글 수: 1
If length(x)==length(y),then xcorr(x,y)=conv(x,fliplr(y)) ,and length(xcorr(x,y))= length(x)*2-1. But if length(x)~=length(y), then they are not equal, and length(xcorr(x,y)) = 2*max(length(x),length(y))-1 while length(conv(x,y)) = length(x)+length(y)-1
채택된 답변
추가 답변 (1개)
Andreas Goser
2011년 2월 27일
0 개 추천
I could not find a change documented in the release notes - compatibility considerations. I assume that you ask this question not out of curiosity, but have different results in different releases? In this case, please post this as a new question with example data and information about releases and platforms you use.
카테고리
도움말 센터 및 File Exchange에서 Correlation and Convolution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!