필터 지우기
필터 지우기

wave phase adjustment between several signals

조회 수: 3 (최근 30일)
Ana
Ana 2014년 8월 20일
답변: Daniel kiracofe 2014년 8월 23일
Hi!
Can anyone help me on this?
I have a file with 8 wave signals that belong to the same wave gauge S1:
time signal1 signal2 signal3 signal4.....
The ideia is to adjust the phase of the signals so that they start with the same wave phase and height. If I do this manually (as I did in the figure) I have to shift each signal in time until I find a proper overlapping for the 8 signals.
Is there any function/routine available for this purpose?
Many thanks!
  댓글 수: 3
Ana
Ana 2014년 8월 20일
Hi,
Thanks for the comment. Here goes the '.csv' file.
Star Strider
Star Strider 2014년 8월 20일
Thanks. I’ll work with it and see if I can provide a solution. No promises, though.

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

답변 (1개)

Daniel kiracofe
Daniel kiracofe 2014년 8월 23일
I think xcorr() may help here. xcorr() will basically try every possible time shift for you, and let you know what shift makes the peaks and valleys line up "the best". I looked at your data, and you'll probably want to slice out the first few cycles and use xcorr on that instead of the whole data set.
Here is a short example from my website on the use of xcorr()

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by