Regarding Autocorrelation function in an application
Mostrar comentarios más antiguos
So i've got an audio file (trying to remove echo) i load in via y=wavread('echo.wav'); and then calculated the autocorrelation xcorr(y,y); and plotted it, centering the single peak at 0. This yields two peaks on either side at +/- 930 which is the sample delay for the echo.
Next I'm trying to find the echo amplitude constant 'a', but I need to do it via relation of the autocorrelation of y and autocorrelation of x. The equation is y(n) = x(n) + a*x(n-no) this yields, (where r_yy is autocorr of y, and r_xx is autocorr of x) : r_yy(k) = r_xx(k) + a^2*r_xx(k) + a*r_xx(k+no) + a*r_xx(k-no)
Now it is aparent that at k=0 I have the value of r_yy(0) and r_xx(0) available from the graph. However my issue is, what then will r_xx(930) = r_xx(-930)= ? If I know that I can calculate 'a'.
Thanks
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Correlation and Convolution en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!