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!

 Réponse acceptée

Honglei Chen
Honglei Chen le 6 Fév 2017

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by