필터 지우기
필터 지우기

Trouble with time lag between peaks

조회 수: 2 (최근 30일)
Ede gerlderlands
Ede gerlderlands 2013년 4월 4일
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
Image Analyst
Image Analyst 2013년 4월 4일
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.
Ede gerlderlands
Ede gerlderlands 2013년 4월 4일
편집: Image Analyst 2013년 4월 4일
The yellow dots are the peak points while the blue and magenta are the x and y values.

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

채택된 답변

Image Analyst
Image Analyst 2013년 4월 4일
편집: Image Analyst 2013년 4월 4일
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
Ede gerlderlands
Ede gerlderlands 2013년 4월 4일
편집: Ede gerlderlands 2013년 4월 4일
I did try to filter out but all the effort was futile. Because I know what the time difference between the peaks should be , is there a way to find the first peak and maintain that time difference such as sliding window? the 'minpeakdistance' in findpeak doesn't solve this issue.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by