mean of every n values in a column

26 次查看(过去 30 天)
I have a data that lists daily temperature readings in a column. How do I get the average temperature for every 6 days?

回答(1 个)

Walter Roberson
Walter Roberson 2017-10-29
mean(reshape(TheColumn, 6, []))

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by