I have data that is measured every second for 60 minutes.
My current code is
newtimetable3 = retime(TT3,'regular','nearest','TimeStep',seconds(60))
This code retimes the data to every minute which is nice, but I am trying to retime the data to where it averages within the minute for 20 minutes.
Alll in all, I need help making the code averge the times within the 60 seconds and marks that number per minute.

댓글 수: 3

jonas
jonas 2020년 7월 15일
Not sure I understand what you want to do.. This would be the arguments for average minutes:
TT_new = retime(TT,'minutely', 'mean')
However, guessing this is not it?
Mohammad Sami
Mohammad Sami 2020년 7월 16일
Use minutes(20) instead for 20 minutes.
ZH
ZH 2020년 7월 17일
Thank you. I made a few alterations and was able to get it going.

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

답변 (1개)

Walter Roberson
Walter Roberson 2020년 7월 16일

0 개 추천

TT3_20 = TT3(1:60*20);
newtimetable3_20 = retime(TT3_20, 'regular', 'minutely', 'TimeStep', 1);

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

ZH
2020년 7월 15일

댓글:

ZH
2020년 7월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by