Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
how to average data /6 rows ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
madhan ravi
am 16 Apr. 2019
mean(reshape(data,6,[]))
3 Kommentare
madhan ravi
am 16 Apr. 2019
idx=cellfun(@isnumeric,C); % C is your data
C(~idx)=cellfun(@str2double,C(~idx),'un',0);
D = vertcat(C{:});
mean(reshape(D,6,[]))
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!