calculate xcorr for some particular lag position

조회 수: 3 (최근 30일)
saima
saima 2013년 4월 19일
답변: Dr W Kurt 2024년 10월 14일
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

답변 (1개)

Dr W Kurt
Dr W Kurt 2024년 10월 14일
c = xcorr(x,y,[4:12]);

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by