array average every 30 values

조회 수: 2 (최근 30일)
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2017년 2월 6일
댓글: 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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by