File Exchange

image thumbnail

Coherently aligns data

version (630 Bytes) by Joshua Carmichael
Aligns data according to cross-corr maxima

1 Download

Updated 08 May 2009

No License

This function treats a matrix as a column-wise set of signals and circularly shifts each column so that it aligns with the first column of data so that the inner product between those columns is maximized with respect to all other shifts.

If only 1 output is specified, then dataout (a matrix the same size as data) is returned.

data: a matrix of data vectors stored column-wise.

y: A matrix size(data) back.
lagout: Optional. A vector of lag indices. These give the amount the column vectors of dataout are shifted with respect to the first
column of data.

Cite As

Joshua Carmichael (2021). Coherently aligns data (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Felipe Machado

Just one question. Why did you choose to have the signals in columns of a matrix? (At least as I see) It would be better to receive two separate vectors

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!