Why autocorr(x) and xcorr(x,x) give different results?

조회 수: 65 (최근 30일)
JOB
JOB 2019년 9월 13일
편집: JOB 2019년 9월 14일
I was trying to find the autocorrelation of a matrix 'x' using autocorr, however cross correlation function (xcorr) is giving me the expected results. The code used is given below, what could be the reason? is there a method by which they can be made equal?
x=randi([0 1],1,64); %Random values 0 & 1
aut_x=autocorr(x); % autocorrelation function of x
crs_x=xcorr(x,x); % cross correlation function of x with itself

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 9월 13일
Please read here (Difference between autocorr & xcorr)

카테고리

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

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by