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!