Synchronize Two Timetables (observation and simulation)

1 Ansicht (letzte 30 Tage)
Ali Saremi
Ali Saremi am 28 Mai 2021
Kommentiert: Ali Saremi am 4 Jun. 2021
Hi there,
I hope you are well.
I need to combine the observation timetable with the simulation timetable using Synchronize function, as there are gaps in my observation data. I have attached my observation and simulation datasets.
I have used the following code to sync both of them:
% Synchronize timetables
newTimetable = synchronize(obs,model,'first','linear')
Apparantly, it has worked,but I am not sure if it is the right one to use.
If someone could help me with that, I would much appreciate it.
Regards,
Ali

Akzeptierte Antwort

Jesús Zambrano
Jesús Zambrano am 28 Mai 2021
Hey Ali,
I think so too. I guess you included the folloinwg lines of code to define obs and model timetables before using synchronize command:
obs = readtimetable('Obs.xlsx');
model = readtimetable('Sim.xlsx');
'first' is computing the row time from the first input time table only. There are more options, you can check them in the following link to the documentation:
'linear' will do a linear interpolation of data values in the output timetable. For more interpolation methods, and some other methods (aggregation, fill, time step), please use th elink above.
  1 Kommentar
Ali Saremi
Ali Saremi am 4 Jun. 2021
Hi there,
Thank you for your response. I have gone through all of the options and i think for my case i should use the one i have mentioned before.
Regards,
Ali

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Timetables 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!

Translated by