shape similarity between two signals

How can I compare the shape similarity of two signals? corrcoef does not work, because two signals having exactly the same shape of different length tend to have a small coefficient.

 채택된 답변

Matt Tearle
Matt Tearle 2011년 3월 10일

0 개 추천

If the signals have different time bases, you'll have to align them first, then use corrcoef. To do that you could use either set operations, like intersect, or interpolation of some kind, in which case use interp1. Something like this:
ti = linspace(tmin,tmax,npts);
y1i = interp1(t1,y1,ti,'cubic');
y2i = interp1(t2,y2,ti,'cubic');
corrcoef(y1i,y2i);

댓글 수: 1

Bo Wu
Bo Wu 2011년 3월 10일
Is there any other method for the comparison, such as in the frequency domain after some transformation?

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

추가 답변 (0개)

카테고리

제품

질문:

2011년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by