Compairing two signal peaks
이전 댓글 표시

Dear all, I have two signals as shown in attached figure. I am using the "peakfinder" to find the number of peaks of each one. I need to find the first match of the peaks of the two signals. Thanks for help. Haitham.
답변 (1개)
Image Analyst
2014년 10월 8일
First read the FAQ http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F and then try something like
differenceSignal = abs(signal1-signal2);
indexOfFirstMatch = find(differenceSignal < someSmallToleranceNumber, 1, 'first');
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!