How to synchronize non timeseries data?

3 Ansichten (letzte 30 Tage)
Liam Bullard
Liam Bullard am 23 Okt. 2020
Bearbeitet: Peter Perkins am 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.

Antworten (1)

Ameer Hamza
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
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Time Series finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by