25-hourly mean
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Sammy
am 28 Mär. 2021
Kommentiert: darova
am 29 Mär. 2021
How do I get a 25-hour running mean for a time series that does not calculate the NaNs? I have an hourly data.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Mär. 2021
movmean(YourData, 25, 'omitnan')
This assumes that YourData has something for every hour (even if NaN.)
If you have less regular data, including the case where your data skips the entries for missing data or where the data is not consistently 1 hour apart, then instead
movmean(YourData, hours(25), 'SamplePoints', Timestamps_for_existing_data)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!