Trouble with time lag between peaks
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have two series of data: (time,x) and (time,y) . My intention is to plot the time lag between the the peaks in x and y . Due to property of the system, the time interval between the successive peaks in X and Y is around 8. I have tried to use the function
[pks1,locs1]=findpeaks(x,'minpeakdistance',8);
[pks2,locs2]=findpeaks(y,'minpeakdistance',8);
In this way, after finding both peaks I could find the lag. The problem is due to the variation in noise level of both readings, I couldn't find the same number of peaks for both x and y, more to this, I can't maintain the distance 8 and some are way exaggerated. Is there anyway of tackling this problem , it's giving me hard time please help me.
4 comentarios
Image Analyst
el 4 de Abr. de 2013
Try http://snag.gy. Just do alt-printscreen to copy window into the clipboard, then go to snag.gy and type control-v and tell us the URL it gives you. Put a blank line and then click the colored image icon and paste the url between the pair of double angle brackets.
Respuesta aceptada
Image Analyst
el 4 de Abr. de 2013
Editada: Image Analyst
el 4 de Abr. de 2013
How do you know what is noise and what is a valid peak that you care about? Can you filter both signals with something and then compare denoised signals?
1 comentario
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!