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.

Answers (1)

differenceSignal = abs(signal1-signal2);
indexOfFirstMatch = find(differenceSignal < someSmallToleranceNumber, 1, 'first');

Tags

Asked:

on 8 Oct 2014

Answered:

on 8 Oct 2014

Community Treasure Hunt

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

Start Hunting!