Info
この質問は閉じられています。 編集または回答するには再度開いてください。
how to average data /6 rows ?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
madhan ravi
2019 年 4 月 16 日
mean(reshape(data,6,[]))
3 件のコメント
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,[]))
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!