Cross-correlation for similarity measurement between two signals
4 ビュー (過去 30 日間)
古いコメントを表示
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??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/403570/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/403575/image.jpeg)
0 件のコメント
回答 (1 件)
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)])
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!