Borrar filtros
Borrar filtros

correlation

4 visualizaciones (últimos 30 días)
kush
kush el 10 de Abr. de 2012
how can i find correlation between 2 1D array each containing 7 double values is their any inbuilt function? examples of 2 arrays could be: A=[1.1,10.3,2.3,3.4,55.3,6.1,9.2]; B=[1.0,2.0,3.0,4.0,5.0,6.0,7.0];

Respuestas (1)

Wayne King
Wayne King el 10 de Abr. de 2012
A=[1.1,10.3,2.3,3.4,55.3,6.1,9.2];
B=[1.0,2.0,3.0,4.0,5.0,6.0,7.0];
[R,P] = corrcoef(A,B);
R(1,2)
If you want the cross-correlation sequence
[xc,lags] = xcorr(A,B,'coeff');
  2 comentarios
kush
kush el 10 de Abr. de 2012
thank u
Oleg Komarov
Oleg Komarov el 12 de Abr. de 2012
Please accept his answer.

Iniciar sesión para comentar.

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by