Mean of 72720 rows in one column such that I can take mean of 720 rows separately.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Anas Rao
am 16 Nov. 2019
Kommentiert: Star Strider
am 18 Nov. 2019
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 Kommentare
Akzeptierte Antwort
Star Strider
am 16 Nov. 2019
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 Kommentare
Weitere Antworten (2)
JESUS DAVID ARIZA ROYETH
am 16 Nov. 2019
data is your 72720 rows in one coloumn
mean720=mean(reshape(data,720,[]));
figure;
plot(mean720)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!