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

Respuestas (1)

Ajay Kumar
Ajay Kumar el 24 de Abr. de 2020
You can ignore NaN values using property omitnan

1 comentario

Hi Ajay Kumar,
Thank you for your help. I have already used this omitnan, also nanmean when I was applying to retime function (https://www.mathworks.com/matlabcentral/answers/371225-calculate-daily-monthly-annual-averages-from-hourly-data).
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?

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 24 de Abr. de 2020

Comentada:

el 24 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by