MATLAB Answers

surya
0

how to average data /6 rows ?

Asked by surya
on 16 Apr 2019
Latest activity Commented on by Rena Berman on 13 May 2019 at 16:01
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 Comments

Good job editing the question and deleting the comment. Will make sure I don’t answer your question anymore.
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
(Answers Dev) Restored edit

Sign in to comment.

Tags

1 Answer

Answer by madhan ravi
on 16 Apr 2019

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

  3 Comments

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??
idx=cellfun(@isnumeric,C); % C is your data
C(~idx)=cellfun(@str2double,C(~idx),'un',0);
D = vertcat(C{:});
mean(reshape(D,6,[]))
oke thank you , I apologize that I just responded because there is an internet connection now

Sign in to comment.