Convert 10 minute average to hourly
Ältere Kommentare anzeigen
I have some data recorded at 10 minute interval and would like to calculate the hourly average. Some data is filtered out so using reshape is not applicable.
I could write a code to use for and if logicals but I have a lot of data and it would be to "heavy".
For each data I have the value and time (year, month, day, hour, minute (10,20 etc).
Is there a quicker way than using a long for and if code?
Akzeptierte Antwort
Weitere Antworten (1)
dpb
am 5 Jul. 2013
0 Stimmen
Reinsert the missing points w/ NaN and if have Statistics toolbox use NANMEAN(); otherwise it's not difficult to filter them out for the sums and use the RESHAPE "trick" you mentioned...
Kategorien
Mehr zu Data Type Identification finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!