필터 지우기
필터 지우기

Summation for every hour from a timetable

조회 수: 1 (최근 30일)
Dora de Jong
Dora de Jong 2021년 9월 28일
댓글: Dora de Jong 2021년 9월 28일
This is a part of the timetable I'am working with.
I want to know for every hour the sum of the values, for that hour, which are located in colum 3.
So for the first hour ( Date(1:6) ) I want to know the Energy_kwh sommation from 1 to 6 (Sum(Energy_kwh(1:6))
for the second hour ( Date(7:12) ) I want to know the Energy_kwh sommation from 7 to 12 (Sum(Energy_kwh(7:12))
....
The time stamps are not equal, this make it difficult.
Who has an idea for this problem?

채택된 답변

Steven Lord
Steven Lord 2021년 9월 28일
retime your timetable, either using the "Retime Timetable" Live Editor Task (see the Aggregate Data section of the example, you'd need to change the time step and the general rule) or the retime function (adapt the Aggregate Timetable Data and Calculate Mean Values example.)
  댓글 수: 1
Dora de Jong
Dora de Jong 2021년 9월 28일
Thank you!
I used the following:
TT2 = retime(Tilted_sailing.solar,'hourly','sum');
And it works perfectly.

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by