필터 지우기
필터 지우기

Should i use xcov or xcorr?

조회 수: 12 (최근 30일)
Jennifer Davies
Jennifer Davies 2017년 6월 27일
답변: Dhaniklal 2023년 2월 7일
Hi
I'm trying to find the similarity in two signals, and the phase lag of at which the similarity is maximum. I'm unsure whether to use xcov or xcorr. I know that, practically, xcov() subtracts the mean from the input and and xcorr() does not. But I don't know which of these is most appropriate to use. Does anyone know of any good resource that can help me figure out which is most appropriate?
Thanks in advance Jen
  댓글 수: 1
Adam
Adam 2017년 6월 27일
It depends on your specific definitions I guess. If exact amplitude, including a non-zero centre is unimportant then use the one that subtracts out the mean, but if you want the signals to be considered different if one is not zero-centred whereas the other is then use xcorr

댓글을 달려면 로그인하십시오.

답변 (1개)

Dhaniklal
Dhaniklal 2023년 2월 7일
Hi,
I understand that you are trying to figure out whether to use xcov and xcorr functions.
Please go through the following documentation to read more about use cases of xcov and xcorr functions.
Hope this helps!
Thanks,
Dhaniklal

카테고리

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