mean of every n values in a column

8 vues (au cours des 30 derniers jours)
Nicole Palermo
Nicole Palermo le 28 Oct 2017
Commenté : Habeeb Alasadi le 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?

Réponses (1)

Walter Roberson
Walter Roberson le 29 Oct 2017
mean(reshape(TheColumn, 6, []))

Catégories

En savoir plus sur NaNs dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by