Coherently aligns data
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.
USAGE:
[dataout,lagout]=xcorAlign(data);
If only 1 output is specified, then dataout (a matrix the same size as data) is returned.
INPUT:
data: a matrix of data vectors stored column-wise.
OUTPUT:
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 (2024). Coherently aligns data (https://www.mathworks.com/matlabcentral/fileexchange/24051-coherently-aligns-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Correlation and Convolution >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |