how to average data /6 rows ?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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
madhan ravi
le 20 Avr 2019
Modifié(e) : madhan ravi
le 20 Avr 2019
Good job editing the question and deleting the comment. Will make sure I don’t answer your question anymore.
surya
le 21 Avr 2019
Rena Berman
le 13 Mai 2019
(Answers Dev) Restored edit
Réponses (1)
madhan ravi
le 16 Avr 2019
mean(reshape(data,6,[]))
3 commentaires
surya
le 16 Avr 2019
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
le 21 Avr 2019
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!