mean of every n values in a column
Show older comments
I have a data that lists daily temperature readings in a column. How do I get the average temperature for every 6 days?
Answers (1)
Walter Roberson
on 29 Oct 2017
mean(reshape(TheColumn, 6, []))
1 Comment
Habeeb Alasadi
on 12 Oct 2020
Thanks Walter
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!