I found the solution. If someone face the same problem, you can follow this link:
http://jespertoftkristensen.com/JTK/Blog/Entries/2013/12/29_Efficient_computation_of_autocorrelations%3B_demonstration_in_MatLab_and_Python.html
Hello Greg,
Yes I did not put the entire code, for instance there is (before the loop):
n0=length(M);
Ndelay=1000;
As the brut-force is very slow I don't do it for all possible delays.
Otherwise, yes I'm new here as you said, please tell me if I am doing something wrong.
Thank you,
Antoine
Hello,
I am trying to calculate the autocorrelation by using brut force to then compare it with xcorr.
I obtain a function that goes to 1 but it is extremely more noisy than with xcorr, I also loose all the interesting features. Does anyone know why ? I already spent a lot of time on it :)...