Cross-correlation in matlab without using the inbuilt function?

后端 未结 3 2022
暗喜
暗喜 2020-12-06 02:36

can someone tell how to do the cross-correlation of two speech signals (each of 40,000 samples) in MATLAB without using the built-in function xcorr and the corr

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 03:38

    If there some good reason why you can't use the inbuilt, you can use a convolution instead. Cross-correlation is simply a convolution without the reversing, so to 'undo' the reversing of the correlation integral you can first apply an additional reverse to one of your signals (which will cancel out in the convolution).

提交回复
热议问题