How do I average a time series with uneven intervals?
Show older comments
Hi,
I have a time series which has vector values recorded at a frequency greater than 1 hz (1 measurement per second) with uneven intervals and I would like to average the vector values for each second so that I effectively have a time series with a 1 hz frequency.
Is it possible to create a loop with variable increments to achieve this? Or might ACCUMARRAY be more suitable?
Here is an example of my data set.
Time SO4 77237.3 0.165 77247.3 0.177 77276 0.137 77304.4 0.093 77304.4 0.093 77332.8 0.103 77361.3 0.072
Any help would be greatly appreciated. Thanks
1 Comment
Accepted Answer
More Answers (0)
Categories
Find more on Cell Arrays 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!