How to convert hourly data to monthly average?

조회 수: 2 (최근 30일)
Ali Saremi
Ali Saremi 2017년 8월 16일
댓글: Ali Saremi 2017년 8월 17일
Hi, I made a table which its first column shows date and time(every 3 hours) and its second column shows Wave Height collected on that day and time. I need to convert it to monthly data and take the average. I have attached a screen shot. If you could take a look and help me with that, I would really appreciate it.
Regards Ali

채택된 답변

Sean de Wolski
Sean de Wolski 2017년 8월 16일
tt = table2timetable(wavetable);
retime(tt,'monthly','mean')
Time tables make this type of work super straightforward.
  댓글 수: 1
Ali Saremi
Ali Saremi 2017년 8월 17일
IT worked. Thank you so much. I appreciate it. Regards Ali

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by