Extending data on 10-min intervals to 1-sec interval

16 views (last 30 days)
I have a timetable with data on 1-second intervals. I have another timetable with data on 10-minute intervals. I would like to add the data on 10-minute intervals to the timetable with 1-second intervals and then fill in the values in between the 10 minute intervals so that all 1-second intervals have data from the 10-minute interval table. I have yet to come up with a way to do this in Matlab. Any suggestions?
  2 Comments
dpb
dpb on 27 Aug 2018
" add the data on 10-minute intervals to the timetable with 1-second intervals and then fill in the values in between the 10 minute intervals so that all 1-second intervals have data from the 10-minute interval table."
So in the end, what's the need for the 1-second timetable at all if you're going to only use interpolated 10-minute data on a 1-second interval?
Totally unclear as to what you expect the end result to be.
KSSV
KSSV on 28 Aug 2018
YOu need to go for interpolation...have a look on interp1

Sign in to comment.

Answers (1)

jonas
jonas on 28 Aug 2018
Edited: jonas on 28 Aug 2018
Since you are already using timetables this is trivial
dt = seconds(1)
TT = synchronize(TT1,TT2,'regular','linear','TimeStep',dt)
... or if you want the final table to have 10-min interval just change dt accordingly

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!