Is there a way to calculate the mean of multiple data points at one time stamp of a time series?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Pieter Spruijt
le 26 Avr 2018
Réponse apportée : Peter Perkins
le 26 Avr 2018
I have a data set where for a number of time stamps, multiple data points are measured. Is there a way to calculate the mean of a time series at every timestamp? In the series, the first column are the timestamps and the second column are the measurements.
2 commentaires
Jan
le 26 Avr 2018
Please post some example data, which clarify, which class the "data set" has and how the "time stamps" are stored. I assume accumarray solves the problem directly.
Réponse acceptée
Peter Perkins
le 26 Avr 2018
Depending on what you have, it can be as easy as
retime(tt,tt.Time,'mean');
where tt is a timetable.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Time Series dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!