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

2 ビュー (過去 30 日間)
Vishnu Dhakad
Vishnu Dhakad 2019 年 6 月 19 日
コメント済み: Vishnu Dhakad 2019 年 6 月 27 日
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 月 19 日
Thank you Roberson
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.
Vishnu Dhakad
Vishnu Dhakad 2019 年 6 月 27 日
Thanks
I got it.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Preprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by