array average every 30 values

1 回表示 (過去 30 日間)
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2017 年 2 月 6 日
Hi again,
I have an Array of 1440x31 and I would like to get another Array, that's calculates the average of every 30 elements (of each row), so finally the array will be 48x31. I had a similar question but struggling to find it again,
thanks!

採用された回答

Honglei Chen
Honglei Chen 2017 年 2 月 6 日
squeeze(mean(reshape(A,30,48,31)))
Assuming A is the matrix
HTH
  1 件のコメント
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2017 年 2 月 6 日
thanks a lot!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by