Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Location of one signal buried/hidden inside another

조회 수: 1 (최근 30일)
Ritvik Ramesh Palvankar
Ritvik Ramesh Palvankar 2020년 10월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
I have to find a signal x which is buried inside another signal y. The signal y might not have exact values of x, but an approximation. y is 39514758*1 samples long and x is 18637*1. The signal x represents a spoken recording that appears only once in y. I need to find x within y upto 25000 samples and then the location of x in y to 2.5 seconds.
I don't know how to proceed. I tried doing strfind() and findsignal which didn't work. I used correlation instead and found the maximum value. But I don't know how to get the indices. Can you please help me out?
Corr=normxcorr2(x,y);
M=max(Corr);
index=find(Corr==M);
Although this isn't working. Please help me out.
  댓글 수: 1
Adam Danz
Adam Danz 2020년 10월 19일
You can use interp1 to interpolate the x signal to the same resolution as the y signal in order to have a 1:1 correspondance between the two signals.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by