mean of every n values in a column

6 visualizaciones (últimos 30 días)
Nicole Palermo
Nicole Palermo el 28 de Oct. de 2017
Comentada: Habeeb Alasadi el 12 de Oct. de 2020
I have a data that lists daily temperature readings in a column. How do I get the average temperature for every 6 days?

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Oct. de 2017
mean(reshape(TheColumn, 6, []))

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by