필터 지우기
필터 지우기

How to get monthly average

조회 수: 1 (최근 30일)
b.m.n n
b.m.n n 2018년 10월 15일
댓글: dpb 2018년 10월 16일
I have data (47 * 1)for 26 months starting in 2015 ending in 2107 as the Xlsx file
Some months it has 3 values and some are 2 or1
I want to get average values for each month as new-data(26*1).
Any suggestion, to help me?

답변 (1개)

dpb
dpb 2018년 10월 15일
t=readtable('month.xlsx');
t=table2timetable(t);
mn=retime(t.Var1,'monthly',@mean);
I didn't download the file so if there are variable names for Var1 use whatever the variable is.
  댓글 수: 2
b.m.n n
b.m.n n 2018년 10월 16일
thank you dpb this file looks like the pic
dpb
dpb 2018년 10월 16일
So did you try it? Looks like it would work "out of the box".

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by