フィルターのクリア

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 Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by