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

8 vues (au cours des 30 derniers jours)
Vishnu Dhakad
Vishnu Dhakad le 19 Juin 2019
Commenté : Vishnu Dhakad le 27 Juin 2019
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

Réponse acceptée

Walter Roberson
Walter Roberson le 19 Juin 2019
We recommend creating timetable() and using the retime() function.
  2 commentaires
Vishnu Dhakad
Vishnu Dhakad le 19 Juin 2019
Thank you Roberson
Vishnu Dhakad
Vishnu Dhakad le 20 Juin 2019
Hi
I want to calculate std also.
using retime function I did not get.
can you help me?

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 20 Juin 2019
TT2 = retime(TT1, 'minute', @std);
  3 commentaires
Steven Lord
Steven Lord le 20 Juin 2019
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 le 27 Juin 2019
Thanks
I got it.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by