mean of every n values in a column

22 views (last 30 days)
Nicole Palermo
Nicole Palermo on 28 Oct 2017
Commented: Habeeb Alasadi on 12 Oct 2020
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
Walter Roberson on 29 Oct 2017
mean(reshape(TheColumn, 6, []))

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!