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 日

0 投票

squeeze(mean(reshape(A,30,48,31)))
Assuming A is the matrix
HTH

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by