mean of every n values in a column

25 visualizzazioni (ultimi 30 giorni)
Nicole Palermo
Nicole Palermo il 28 Ott 2017
Commentato: Habeeb Alasadi il 12 Ott 2020
I have a data that lists daily temperature readings in a column. How do I get the average temperature for every 6 days?

Risposte (1)

Walter Roberson
Walter Roberson il 29 Ott 2017
mean(reshape(TheColumn, 6, []))

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by