Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to average data /6 rows ?

조회 수: 4 (최근 30일)
surya
surya 2019년 4월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
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
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일
mean(reshape(data,6,[]))
  댓글 수: 3
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

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by