Signal Processing Toolbox    

Multiple Channels

For a multichannel signal, xcorr and xcov estimate the autocorrelation and cross-correlation and covariance sequences for all of the channels at once. If S is an M-by-N signal matrix representing N channels in its columns, xcorr(S) returns a (2M-1)-by-N2 matrix with the autocorrelations and cross-correlations of the channels of S in its N2 columns. If S is a three-channel signal

then the result of xcorr(S) is organized as

Two related functions, cov and corrcoef, are available in the standard MATLAB environment. They estimate covariance and normalized covariance respectively between the different channels at lag 0 and arrange them in a square matrix.


  Bias and Normalization Spectral Analysis