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
0 个评论
采纳的回答
更多回答(1 个)
Walter Roberson
2019-6-20
TT2 = retime(TT1, 'minute', @std);
3 个评论
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 Center 和 File Exchange 中查找有关 Data Preprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!