Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to average data /6 rows ?

1 vue (au cours des 30 derniers jours)
surya
surya le 16 Avr 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
hi, im new user matlab,
how to average data /6 rows ?
0.2
0.1
0.3
0.6
0.7
0.1
0
0
0
0
0.6
0.5
.
.
.
length rows = 5430
thanks you ..
  3 commentaires
surya
surya le 21 Avr 2019
I'm sorry, I made a mistake yesterday with my data, so I edited it and there was no internet network and I pressed submit when I wasn't finished editing. sorry I won't repeat it again
Rena Berman
Rena Berman le 13 Mai 2019
(Answers Dev) Restored edit

Réponses (1)

madhan ravi
madhan ravi le 16 Avr 2019
mean(reshape(data,6,[]))
  3 commentaires
madhan ravi
madhan ravi le 16 Avr 2019
idx=cellfun(@isnumeric,C); % C is your data
C(~idx)=cellfun(@str2double,C(~idx),'un',0);
D = vertcat(C{:});
mean(reshape(D,6,[]))
surya
surya le 21 Avr 2019
oke thank you , I apologize that I just responded because there is an internet connection now

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by