How to synchronize non timeseries data?

5 views (last 30 days)
Liam Bullard
Liam Bullard on 23 Oct 2020
Edited: Peter Perkins on 20 Nov 2020
How can two datasets be synchronized, when they are not timeseries data?
I.e. Two datasets in which the 'x axis' is position, rather than time.

Answers (1)

Ameer Hamza
Ameer Hamza on 23 Oct 2020
By synchronize, if you mean having the same x-values for both datasets, then use intep1(): https://www.mathworks.com/help/matlab/ref/interp1.html
  1 Comment
Peter Perkins
Peter Perkins on 20 Nov 2020
Edited: Peter Perkins on 20 Nov 2020
You can probably use tables and inner/outerjoin to match up rows and combine the two sets of data. You probably need to then use interp1 to fill in non-matches.
You could consider converting your positions to durations, make timetables, use synchronize, and then convert back.

Sign in to comment.

Categories

Find more on Time Series in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!