Correlation coefficient between three column vectors

14 ビュー (過去 30 日間)
Ali Awada
Ali Awada 2021 年 9 月 10 日
コメント済み: Ali Awada 2021 年 9 月 13 日
Hello all,
Let us say I have 3 column matrices (each is 2000x1) and I want to calculate the cross-correlation coefficients between them. Each matrix represents speed values at a certain elevation. Is the following way correct, where the correlation between the columns is stroed in the 'cr' matrix?
test = [a b c]; % where a, b, and c are the three column matrices put into one matrix
[cr,lgs] = xcorr(test,'coeff');

回答 (1 件)

the cyclist
the cyclist 2021 年 9 月 11 日
You should read the documentation, to determine whether a function does what you need. But I think you probably actually want
cr = corrcoef(test)

カテゴリ

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