Formula for cross-correlation in matlab

3 visualizzazioni (ultimi 30 giorni)
Sagar
Sagar il 9 Mar 2016
Risposto: Sagar il 11 Mar 2016
When we calculate cross correlation using the function 'xcorr' with 'coeff' option, does the function calculate Pearson correlation coefficient or something else?

Risposta accettata

Sagar
Sagar il 11 Mar 2016
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.

Più risposte (1)

dpb
dpb il 9 Mar 2016
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