The sequence of the matrix after xcorr function

3 ビュー (過去 30 日間)
Fan Li
Fan Li 2017 年 12 月 22 日
回答済み: Fan Li 2017 年 12 月 23 日
Hi every one I am beginner of matlab. I want to use the xcorr function to calculate the correlation function. My input is a matrix A,let say each column of the matrix A is A1 A2 A3 B1 B2 B3. Because the the function of r=xcorr(A) returns r whose columns contain the autocorrelation and cross-correlation sequences for all combinations of the columns of A, so the results have 36 columns. I wander the sequence of the of the 36 columns, because there are some unwanted results.
Thanks
Fan Li
  1 件のコメント
David Goodmanson
David Goodmanson 2017 年 12 月 22 日
from 'help xcorr':
C = xcorr(A), where A is an M-by-N matrix (M>1), returns a large matrix with 2*M-1 rows and N^2 columns containing the cross-correlation sequences for all combinations of the columns of A; the first N columns of C contain the delays and cross correlations using the first column of A as the reference, the next N columns of C contain the delays and cross correlations using the second column of A as the reference, and so on.

サインインしてコメントする。

回答 (1 件)

Fan Li
Fan Li 2017 年 12 月 23 日
Thanks for answers.

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by