X axis allignment of two signals with slight delay in time
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
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 Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!