필터 지우기
필터 지우기

correlation

조회 수: 4 (최근 30일)
kush
kush 2012년 4월 10일
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];

답변 (1개)

Wayne King
Wayne King 2012년 4월 10일
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
kush
kush 2012년 4월 10일
thank u
Oleg Komarov
Oleg Komarov 2012년 4월 12일
Please accept his answer.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by