How to synchronize non timeseries data?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Ameer Hamza
am 23 Okt. 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 Kommentar
Peter Perkins
am 20 Nov. 2020
Bearbeitet: Peter Perkins
am 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.
Siehe auch
Kategorien
Mehr zu Time Series finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!