how to take mean of every second data in a minute and an hourly?

조회 수: 1 (최근 30일)
I have data every second like
A = 16:22:54
16:22:55
16:22:56
16:22:57
.........
.........
B = 91.964
92.384
81.198
NAN
82.222
.........
.........
I want to make a new matrix which has every minute mean data.
please find the attached files. (Note: Time is in numeric formate)
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2019년 6월 19일
We recommend creating timetable() and using the retime() function.
  댓글 수: 2
Vishnu Dhakad
Vishnu Dhakad 2019년 6월 20일
Hi
I want to calculate std also.
using retime function I did not get.
can you help me?

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2019년 6월 20일
TT2 = retime(TT1, 'minute', @std);
  댓글 수: 3
Steven Lord
Steven Lord 2019년 6월 20일
What's the standard deviation of an array with no elements?
>> std([])
ans =
NaN
If any of the minute bins are empty, the standard deviation of the data in that bin should be NaN.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by