How to synchronize non timeseries data?
5 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
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
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.
See Also
Categories
Find more on Time Series in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!