File Exchange

image thumbnail

xcorrFD(x,y)

version 1.1 (1.9 KB) by

xcorrFD takes two discrete time signals as input and calculates cross-correlation and delay

6 Downloads

Updated

View License

xcorrFD takes two discrete time signals as input and calculates cross-correlation values and delay between two signals. The computation is performed in the frequency domain. The results of xcorrFD is validated against the MatLAB's xcorr function.
For cross-correlation in time domain see xcorrTD.

Syntax: [lags,ck,td] = xcorrFD(x,y)

Input:
x = input signal 1 (must be a Nx1 vector)
y = input signal 2 (must be a Nx1 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 [(2N-1)x1 vector]
td = delay (i.e., number of lags) between two signals

Questions? Contact: ekalkan@usgs.gov

Comments and Ratings (0)

Updates

1.1

Notes updated......

1.1

Notes updated.

1.0

Updated description

MATLAB Release
MATLAB 9.0 (R2016a)

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video