Formula for cross-correlation in matlab

3 次查看(过去 30 天)
When we calculate cross correlation using the function 'xcorr' with 'coeff' option, does the function calculate Pearson correlation coefficient or something else?

采纳的回答

Sagar
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
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