hi there, I want to find time delay of a real time source using 2 channel microphone. First of all, I need to record the source in real time, then calculate it's delay using matlab. So, I don't have any idea to do that. Could someone help me , please.

답변 (2개)

Honglei Chen
Honglei Chen 2012년 2월 24일

0 개 추천

  1. record the data.
  2. read the data into MATLAB
  3. do a cross correlation between two channels and translate the lag to time

댓글 수: 2

Dennis
Dennis 2012년 2월 24일
how to do step 3?
Wayne King
Wayne King 2012년 2월 24일
Have you looked at the documentation for xcorr?

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

Linas Svilainis
Linas Svilainis 2019년 12월 2일

0 개 추천

Try two functions below:
Those do exactly what you need with subsample resolution

카테고리

질문:

2012년 2월 24일

답변:

2019년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by