Compairing two signal peaks

7 visualizaciones (últimos 30 días)
Haitham
Haitham el 8 de Oct. de 2014
Respondida: Image Analyst el 8 de Oct. de 2014
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.

Respuestas (1)

Image Analyst
Image Analyst el 8 de Oct. de 2014
differenceSignal = abs(signal1-signal2);
indexOfFirstMatch = find(differenceSignal < someSmallToleranceNumber, 1, 'first');

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by