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

조회 수: 5 (최근 30일)
Aries Dwi Siswanto
Aries Dwi Siswanto 2020년 4월 24일
댓글: Aries Dwi Siswanto 2020년 4월 24일
Hi everyone,
How to use ignore NaN value when calculate mean or geomean using retime?
Thank you.

답변 (1개)

Ajay Kumar
Ajay Kumar 2020년 4월 24일
You can ignore NaN values using property omitnan
  댓글 수: 1
Aries Dwi Siswanto
Aries Dwi Siswanto 2020년 4월 24일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Timetables에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by