Converting/resampling 10-min interval timseries data to 15-min
Show older comments
Hello
I have time series data taken at 10-min intervals (see below). I would like to somehow obtain values at 15-min intervals from this data.
(% Y M D H MI S VAL)
2008 1 1 0 0 0 1.68400000000000
2008 1 1 0 10 0 1.71400000000000
2008 1 1 0 20 0 1.74400000000000
2008 1 1 0 30 0 1.77300000000000
2008 1 1 0 40 0 1.80300000000000
2008 1 1 0 50 0 1.83400000000000
2008 1 1 1 0 0 1.86500000000000
2008 1 1 1 10 0 1.89800000000000
2008 1 1 1 20 0 1.93400000000000
2008 1 1 1 30 0 1.97200000000000
2008 1 1 1 40 0 2.01200000000000
2008 1 1 1 50 0 2.05500000000000
I have tried using the resample function as follows:
ts2 = timeseries(val);
val_int = resample(ts2, 0:15/24/60:718); %%(There are 719 values in the original timeseries)
...This really doesn't work very well!
Is resample the right tool to use? If not, could somebody please give any hints? I was thinking of maybe some sort of moving average?
Many thanks in advance
Ozgun
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!