Autocorrelation sin(2x) function
Ältere Kommentare anzeigen
Hi, I am trying to calculate the autocorrelation of the sin(2t), but I am getting a result different from the expected.
t = -10:0.05:10;
y = sin(2*t);
b = autocorr(y);
figure;
plot(b)
Expected :

found:

Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Correlation and Convolution finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!