필터 지우기
필터 지우기

Converting hourly arrays to daily

조회 수: 1 (최근 30일)
BN
BN 2020년 3월 24일
답변: Ameer Hamza 2020년 3월 24일
Hey all, I hope you are well!
I have a 31 x 1 cell which includes 3D arrays (81x69x8760 or 8784 in leap years); The 81 is longitude, the 69 is latitude, and 8760 or 8784 is hours in a year. I want to change hourly to daily (using mean) scale (81x69x365 or 366 in case of 8784), but there is a little bit of complexity that I can't handle it.
I want to ignore the first hour in the first array, and use the first hour in all other arrays as the last hour in the previous array, and finally, I don't need the last array (31st), in fact, I just keep it for use it first hour as last hour in previous (30th) array.
So the results that I need are a 30x1 cell with 81x69x365 or 366 (in leap years) arrays.
As the file is too large to attach I just attach a 2x1 cell as a test.
I would be grateful if you can help me with this issue.
Best Regards.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 3월 24일
There is some issue with the mat file you attached. It appears to be blank when opened in MATLAB R2020a. You can use the retime function to change the interval from hourly to daily: https://www.mathworks.com/help/matlab/ref/timetable.retime.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by