MATLAB Answers

Formula for cross-correlation in matlab

조회 수: 18(최근 30일)
Sagar 2016년 3월 9일
답변: Sagar 2016년 3월 11일
When we calculate cross correlation using the function 'xcorr' with 'coeff' option, does the function calculate Pearson correlation coefficient or something else?

채택된 답변

Sagar 2016년 3월 11일
It looks like that 'xcorr' does not calculate Pearson correlation coefficient directly. To get Pearson correlation coefficient, we have to remove the mean first and then call 'xcorr' which will then give Pearson correlation coefficient.

추가 답변(1개)

dpb 2016년 3월 9일
In the Statistics Toolbox, see
doc corr

Community Treasure Hunt

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

Start Hunting!

Translated by