Cross-correlation for signal matches

조회 수: 10 (최근 30일)
Steven Chong
Steven Chong 2015년 6월 23일
댓글: Salaheddin Hosseinzadeh 2015년 6월 24일
How can i cross-correlate two different signals to determine whether they are matched by frequency. In depth of my question is that the signals will cross-correlate their frequencies and when contain same frequency then the product will have high amplitude and vice versa

답변 (1개)

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015년 6월 23일
편집: Salaheddin Hosseinzadeh 2015년 6월 23일
Dear Steven,
Here is a example code i used to find the phase-shift between two different signals. I used cross-correlation to determine the phase shift.
In line 26 you can see the crosscorr() function which performs, well of course you know what that does ;)
Hope this helps. If you made the code any better share it with me plz.
Good luck ;)
  댓글 수: 3
Steven Chong
Steven Chong 2015년 6월 24일
Basically i was intending to cross-correlate two audio signals to compare their frequencies in the time domain to determine if they match each other
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015년 6월 24일
crosscorr(x,y), generates an output signal which has its peak where the two signals have the most relation. They may not neccesarily match!
You can compare the audio signal in time domain using crosscorr(), or, first take their Fourier transform (fft()) and compare their frequency spectrum, this is up to you.
I assume if two signals are similar in time domain, they will be similar in frequency domain as well.
This is what I understand at least!
Good luck.

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

카테고리

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