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
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
2019-4-21
Rena Berman
2019-5-13
(Answers Dev) Restored edit
回答(1 个)
madhan ravi
2019-4-16
mean(reshape(data,6,[]))
3 个评论
surya
2019-4-16
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
2019-4-21
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!