Data vusualization - How to align data sets?
7 ビュー (過去 30 日間)
I have two vectors. Each one contains data from two different devices wich measure the same periodic variable.
I would like to compare this two measurments sets without the aparent delay between them:
Is there a function in Matlab that could help to "align" the data sets? It would be actually enough to plot two periods.
Leah 2013 年 8 月 20 日
I would probably do the circshift function and search for the highest correlation. But if the first minimum works wells then stick with that.
Remember when you circshift that the values loop around so the the beginning of your time series (however many steps you shifted by) is not longer valid and should be removed from the analysis.
Here's a simple example of what I'm suggesting
for t=1:64 % 64 is one period length
[~,I] = max(c); % I is best value for circshift