calculate xcorr for some particular lag position

3 visualizaciones (últimos 30 días)
saima
saima el 19 de Abr. de 2013
Respondida: Dr W Kurt el 14 de Oct. de 2024
Hello everyone,
xcorr function allows to calculate cross-correlation between x and y for a range of lag positions (-maxlags:+maxlags) when following command is used.
c=xcorr(x,y,maxlags);
But, I want to calculate cross-correlation for some definite lag positions. For example, my lag range is 4:12. How can I do it?
-saima

Respuestas (1)

Dr W Kurt
Dr W Kurt el 14 de Oct. de 2024
c = xcorr(x,y,[4:12]);

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by