Mean of 72720 rows in one column such that I can take mean of 720 rows separately.
1 回表示 (過去 30 日間)
古いコメントを表示
Hello!
I have data of 72720 rows in one coloumn. I want to take the mean of each 720 rows and then plot a graph.
Thank you
0 件のコメント
採用された回答
Star Strider
2019 年 11 月 16 日
Try this:
data = (1:72720)'; % Create Column Vector To Test Code
rdata = reshape(data, [], 720); % Reshape To Matrix
rdata_mean = mean(rdata); % Calculate Column Means
figure
plot(1:numel(rdata_mean), rdata_mean)
grid
Experiment to get the result you want.
4 件のコメント
その他の回答 (2 件)
JESUS DAVID ARIZA ROYETH
2019 年 11 月 16 日
data is your 72720 rows in one coloumn
mean720=mean(reshape(data,720,[]));
figure;
plot(mean720)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!