필터 지우기
필터 지우기

Cross-correlation for similarity measurement between two signals

조회 수: 14 (최근 30일)
Farrukh Hassan
Farrukh Hassan 2020년 11월 5일
답변: Subhadeep Koley 2020년 11월 5일
Could you find the answer?? i have two waveform of a signal. each having 2048 samples. the sampling frequency is 1mHz. how can i find similarity between the two using cross-correlation??

답변 (1개)

Subhadeep Koley
Subhadeep Koley 2020년 11월 5일
This might help.
% Creating random data for example
sig1 = rand(1, 2048);
sig2 = rand(1, 2048);
% Calculate correlation coefficient matrix between sig1 and sig2
R = corrcoef(sig1, sig2);
% Extract correlation coefficient value
corrcoefVal = R(1, 2);
disp(['Correlation coefficient between sig1 and sig2: ', num2str(corrcoefVal)])

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by