Getting Peak time from audio signal in Simulink

Hi, im using three microphones to detect the location of a sound where i need to know the exact time the sound reaches the three microphones. The microphones are placed about a few meters away so that the time the sound reaches each microphones will be different.
the only problem now is that i cant get the first peak time from the microphone inputs. Is there a block in simulink i can use to achieve this?

답변 (1개)

Andreas Goser
Andreas Goser 2011년 3월 2일

0 개 추천

That sounds like the peak finder block will help you.

댓글 수: 3

Faris Ahmad
Faris Ahmad 2011년 3월 2일
thx for the fast response but i have tried the peak finder before i posted this question but i was only able to get the peak value, not the peak time. or are there any settings on the peak finder block for me to get the peak time instead of peak value?
I'd says that is the "Output Peak Index" feature. The index can be translated to a time.
Faris Ahmad
Faris Ahmad 2011년 3월 2일
owh thx for the help. but now im facing a different problem, the peak finder block requires more than 3 channel, which means i have to use a microphone with 2 channels and another microphone with 1 channel and on top of that, i have to use unbuffers to get them to work. unbuffers greatly slows the simulation.. but i did it anyway and for the indices values, i was getting alternating value of ones and zeros.. i was hoping to just get a single value from the very first peak so that i can use it in my formula block. What do u think the problem is?

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

제품

질문:

2011년 3월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by