필터 지우기
필터 지우기

Autocorrelation function without using xcorr

조회 수: 5 (최근 30일)
Joao
Joao 2014년 11월 14일
Hello, I have this code trying to plot the autocorrelation of signal E1 without xcorr function
E1f=[E1 zeros(1,1249)];
for L = 0:length(E1)
for j = 1 : length(E1)
Rxx(j) = (E1f(j)*E1f(j+L));
end
Rxx_sum(L+1) = sum(Rxx);
Rxx = 0;
end
t1=0:1:length(E1);
plot(t1,Rxx_sum);
However i don't the same result using xcorr. E1 is a vector of complex numbers and has a length of [1,1249]
What am I doing wrong?

답변 (0개)

카테고리

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