mean of every n values in a column

21 ビュー (過去 30 日間)
Nicole Palermo
Nicole Palermo 2017 年 10 月 28 日
コメント済み: Habeeb Alasadi 2020 年 10 月 12 日
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, []))
  1 件のコメント
Habeeb Alasadi
Habeeb Alasadi 2020 年 10 月 12 日
Thanks Walter

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by