Formula for cross-correlation in matlab

When we calculate cross correlation using the function 'xcorr' with 'coeff' option, does the function calculate Pearson correlation coefficient or something else?

 Akzeptierte Antwort

Sagar
Sagar am 11 Mär. 2016

0 Stimmen

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.

Weitere Antworten (1)

dpb
dpb am 9 Mär. 2016

0 Stimmen

In the Statistics Toolbox, see
doc corr

Gefragt:

am 9 Mär. 2016

Beantwortet:

am 11 Mär. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by