how to average data /6 rows ?

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 件のコメント

madhan ravi
madhan ravi 2019 年 4 月 20 日
編集済み: madhan ravi 2019 年 4 月 20 日
Good job editing the question and deleting the comment. Will make sure I don’t answer your question anymore.
surya
surya 2019 年 4 月 21 日
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 2019 年 5 月 13 日
(Answers Dev) Restored edit

回答 (1 件)

madhan ravi
madhan ravi 2019 年 4 月 16 日

0 投票

mean(reshape(data,6,[]))

3 件のコメント

surya
surya 2019 年 4 月 16 日
im try script program
col = Namafiles(1:12));
mymeans = 1/6*(col(1:6:end-1) + col(6:6:end))
also cant ..
what Is the data type different??
madhan ravi
madhan ravi 2019 年 4 月 16 日
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 2019 年 4 月 21 日
oke thank you , I apologize that I just responded because there is an internet connection now

この質問は閉じられています。

タグ

質問済み:

2019 年 4 月 16 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by