Calculate average (daily, monthly, seasonally) for long time series data

5 visualizzazioni (ultimi 30 giorni)
Hi everyone,
How to use ignore NaN value when calculate mean or geomean using retime?
Thank you.

Risposte (1)

Ajay Kumar
Ajay Kumar il 24 Apr 2020
You can ignore NaN values using property omitnan
  1 Commento
Aries Dwi Siswanto
Aries Dwi Siswanto il 24 Apr 2020
Hi Ajay Kumar,
Thank you for your help. I have already used this omitnan, also nanmean when I was applying to retime function (
Here some synthax that I used:
t = datetime (year, month, day, hour, minute, second);
hourlytemp = timetable(t, TempSurf);
monthlyavg = retime (hourlytemp, 'monthly', 'nanmean')
Error using timetable/retime (line 140)
Unrecognized synchronization method: 'nanmean'.
How to use the nanmean combined to retime?

Accedi per commentare.


Scopri di più su Timetables in Help Center e File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by