TIME-DOMAIN CROSS-CORRELATION FUNCTION

xcorrTD takes two discrete time signals as input and calculates cross-correlation and delay
865.0 次下载
更新时间 2017/6/16

查看许可证

xcorrTD takes two discrete time signals as input and calculates cross-correlation values, cross-correlation
coefficients and delay (lag) between two signals. The computation is performed in the time domain. The results of xcorrTD has been validated against the MatLAB's xcorr function.
For cross-correlation in frequency domain see xcorrFD.
Syntax: [lags,ck,cc,td] = xcorrTD(x,y)
Input:
x = input signal 1 (must be a Nx1 or 1xN vector)
y = input signal 2 (must be a Nx1 or 1xN vector)
Output:
lags = a vector of lags with a length of 2xN-1 (N = number of
data points in signal x or y)
ck = cross-correlation values (MatLAB xcorr gives them as
output)
cc = correlation coefficients
td = delay (i.e., number of lags) between two signals

引用格式

Dr. Erol Kalkan, P.E. (2024). TIME-DOMAIN CROSS-CORRELATION FUNCTION (https://www.mathworks.com/matlabcentral/fileexchange/63337-time-domain-cross-correlation-function), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Correlation and Convolution 的更多信息

Community Treasure Hunt

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

Start Hunting!

xcorrTD/

版本 已发布 发行说明
1.0.0.0

Updated description

Figure updated