필터 지우기
필터 지우기

X axis allignment of two signals with slight delay in time

조회 수: 2 (최근 30일)
Husnain Ahmed
Husnain Ahmed 2018년 9월 7일
댓글: Aquatris 2018년 9월 7일
I am plotting two signals which have slight time delay. I want to make them exact same. I tried make it by subtracting they look alligned but then subtracted signal does not start from 0. The both plots are attached. Is there any possible way to make them align and both start and end at same point.
  댓글 수: 3
Husnain Ahmed
Husnain Ahmed 2018년 9월 7일
Actually this data has been plotted from one sensor but data was collected in Real Time PC and another PC that is why there is some difference in the y axis values.
Aquatris
Aquatris 2018년 9월 7일
Why do you expect the time to start at zero since you shift the signal?
You can either not show the negative time part of the plot by xlim([0 80]) command or instead of doing t = t-delay, do
index = find(t=<delay);
t(delay) =[];
data(delay) = [];
t = t-t(1); % make the time start at 0

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by