How to normalise time series data to create synchronisation between sensors?

6 ビュー (過去 30 日間)
Jonathan Williams
Jonathan Williams 2022 年 5 月 3 日
コメント済み: Jonathan Williams 2022 年 5 月 3 日
Hello, I have 2 inertial sensors producing euler angles but seemingly at different frequencies.
I need to syncronise them. I have used linear interpolation to normalise the data to a fixed number of points.
%% data as x
Nx = size(x,1);
xc = [x;x(1,:)];
y = interp1(0:Nx, xc, (0:8000)*(Nx/8001));
%%
I then ran a cross correlation function to check the data are well aligned. They are, zero lag gives the best correlation.
Despite this visually they do NOT looked synchronised.
Both have time stamps but these are not identical as the data is from different sampling frquencies.
How do I go about synchronising these?
  2 件のコメント
Walter Roberson
Walter Roberson 2022 年 5 月 3 日
https://www.mathworks.com/help/signal/ref/dtw.html
dynamic time warp?
Jonathan Williams
Jonathan Williams 2022 年 5 月 3 日
Many thanks for this.
The result does indeed provide vectors of the same length, however it has produced a suspicious flat line in the data that isn't there in the orginal data.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by