mean of every n values in a column

21 Ansichten (letzte 30 Tage)
Nicole Palermo
Nicole Palermo am 28 Okt. 2017
Kommentiert: Habeeb Alasadi am 12 Okt. 2020
I have a data that lists daily temperature readings in a column. How do I get the average temperature for every 6 days?

Antworten (1)

Walter Roberson
Walter Roberson am 29 Okt. 2017
mean(reshape(TheColumn, 6, []))

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by