cross_corr

CROSS_CORR calculates the normalized cross-correlation (NCC) between column vectors pairwisely

You are now following this Submission

- NCC = cross_corr(X, Y, isNormalized, isMeaned) Computes the NCC between
column vectors of X and Y pairwisely

Both X and Y are matrices with each column representing a sample. X and Y should have the same
number of rows. Suppose the size of X is d x nx, and the size of Y is d x ny. Then the output matrix ncc will be of size nx x ny, in which NCC(i, j) is the NCC value between X(:,i) and Y(:,j). The other two parameters isNormalized and isMeaned indicate if each column has been normalized or zero-meaned, which can be used for speeding up the calculation.

Cite As

Xufeng Lin (2026). cross_corr (https://se.mathworks.com/matlabcentral/fileexchange/68295-cross_corr), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2014a to R2018a

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

update examples

1.0.0